Skip to content

Commit

Permalink
Fixed typo of proccess
Browse files Browse the repository at this point in the history
  • Loading branch information
zivsha committed Feb 4, 2018
1 parent 818e627 commit ac2f867
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/align/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ At this point the `align` object is valid and will be able to align depth frames

```cpp
//Get processed aligned frame
auto proccessed = align.proccess(frameset);
auto processed = align.process(frameset);

// Trying to get both color and aligned depth frames
rs2::video_frame other_frame = proccessed.first_or_default(align_to);
rs2::depth_frame aligned_depth_frame = proccessed.get_depth_frame();
rs2::video_frame other_frame = processed.first_or_default(align_to);
rs2::depth_frame aligned_depth_frame = processed.get_depth_frame();

//If one of them is unavailable, continue iteration
if (!aligned_depth_frame || !other_frame)
Expand Down
2 changes: 1 addition & 1 deletion wrappers/opencv/grabcuts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We start by getting a pair of spatially and temporally synchronized frames:
frameset data = pipe.wait_for_frames();
// Make sure the frameset is spatialy aligned
// (each pixel in depth image corresponds to the same pixel in the color image)
frameset aligned_set = align_to.proccess(data);
frameset aligned_set = align_to.process(data);
frame depth = aligned_set.get_depth_frame();
auto color_mat = frame_to_mat(aligned_set.get_color_frame());
```
Expand Down
2 changes: 1 addition & 1 deletion wrappers/python/examples/align-depth2color.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# frames.get_depth_frame() is a 640x360 depth image

# Align the depth frame to color frame
aligned_frames = align.proccess(frames)
aligned_frames = align.process(frames)

# Get aligned frames
aligned_depth_frame = aligned_frames.get_depth_frame() # aligned_depth_frame is a 640x480 depth image
Expand Down
2 changes: 1 addition & 1 deletion wrappers/python/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ PYBIND11_MODULE(NAME, m) {

py::class_<rs2::align> align(m, "align");
align.def(py::init<rs2_stream>(), "align_to"_a)
.def("proccess", &rs2::align::process, "depth"_a);
.def("process", &rs2::align::process, "depth"_a);

/* rs2_record_playback.hpp */
py::class_<rs2::playback, rs2::device> playback(m, "playback");
Expand Down

0 comments on commit ac2f867

Please sign in to comment.