Skip to content

Commit

Permalink
Merge pull request IntelRealSense#2354 from neuralassembly/master
Browse files Browse the repository at this point in the history
Avoiding compile errors due to removal of overator() in version 2.16
  • Loading branch information
dorodnic authored Sep 5, 2018
2 parents 0946fc0 + a4c1988 commit 283c715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wrappers/opencv/grabcuts/rs-grabcuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc, char * argv[]) try
// Colorize depth image with white being near and black being far
// This will take advantage of histogram equalization done by the colorizer
colorize.set_option(RS2_OPTION_COLOR_SCHEME, 2);
frame bw_depth = colorize(depth);
frame bw_depth = depth.apply_filter(colorize);

// Generate "near" mask image:
auto near = frame_to_mat(bw_depth);
Expand Down
2 changes: 1 addition & 1 deletion wrappers/opencv/imshow/rs-imshow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int main(int argc, char * argv[]) try
while (waitKey(1) < 0 && cvGetWindowHandle(window_name))
{
rs2::frameset data = pipe.wait_for_frames(); // Wait for next set of frames from the camera
rs2::frame depth = color_map(data.get_depth_frame());
rs2::frame depth = data.get_depth_frame().apply_filter(color_map);

// Query frame size (width and height)
const int w = depth.as<rs2::video_frame>().get_width();
Expand Down

0 comments on commit 283c715

Please sign in to comment.