4 Replies Latest reply on Apr 10, 2018 5:32 AM by P_D_C

    Question) How can i convert rs2::frameset -> iplimage ?

    P_D_C

      Hello, i'm sorry for serial question, but i can't find place where can i ask some problem directly about RealSense SDK.

       

      Question)

      I referenced below sentence in visual studio.

       

       

      static rs2::frameset current_frameset;

       

       

      than, i want convert this "current_frameset" variable to iplimage for using openCV.

      how can i change this one? (exactly, rs2::video_frame -> CvCapture * )

       

       

      i tried this one,

       

      cv::Mat img(480,640, CV_8UC3, (uchar3 *)frame->get_frame_data(rs2::stream::current_frameset));

       

      but it came up only error that i can't understand.

       

      so, i wish sentence like      " frame = Cv ...  "   (frame is iplimage variable)

       

       

      thank for help!