5 Replies Latest reply on Oct 29, 2018 8:59 AM by Intel Corporation

    How to convert  cv::Mat to  rs2::frame ?



      I have already seen this question in this community but didn't get the answer I want.

      In rs_align, I have converted the rs2:: frame to cv:: Mat for using the joint bilateral filter provided by OpenCV to improve the quality of the depth map. The depth map of the processed mat type that is obtained cannot be used to call remove_background().

      So,I just want to know how to convert cv:: Mat to  rs2:: frame. If you can help me, I would be very grateful.

      Thank you!