5 #include <opencv2/opencv.hpp> 7 int main(
int argc,
char * argv[])
try 18 const auto window_name =
"Display Image";
19 namedWindow(window_name, WINDOW_AUTOSIZE);
21 while (waitKey(1) < 0 && getWindowProperty(window_name, WND_PROP_AUTOSIZE) >= 0)
31 Mat
image(Size(w, h), CV_8UC3, (
void*)depth.
get_data(), Mat::AUTO_STEP);
34 imshow(window_name,
image);
44 catch (
const std::exception& e)
frame apply_filter(filter_interface &filter)
frameset wait_for_frames(unsigned int timeout_ms=RS2_DEFAULT_TIMEOUT) const
GLint GLint GLsizei GLsizei GLsizei depth
const void * get_data() const
GLdouble GLdouble GLdouble w
GLfloat GLfloat GLfloat GLfloat h
GLenum GLenum GLsizei void * image
depth_frame get_depth_frame() const
const std::string & get_failed_args() const
int main(int argc, char *argv[])
const std::string & get_failed_function() const