Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding compile errors due to removal of overator() in version 2.16 #2354

Merged
merged 1 commit into from
Sep 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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