convert cv::Mat from/to VTK point type

asked 2018-08-11 03:51:03 -0500

BenK gravatar image

I found that viz module has some functions that bridge cv::Mat and vtkPoints, specifically the vtkCloudMatSink and vtkCloudMatSource. However, those classes are not exposed in header files of cv::viz. How can I use those classes? Or there are other ways to transfer/bridge/convert cv::Mat to vtkPoint? Thank!

edit retag flag offensive close merge delete


make a PR or try to copy source code in your function

LBerger gravatar imageLBerger ( 2018-08-11 05:03:33 -0500 )edit

Thanks! Copying or mimicking the source code may be easier and quicker.

It would be great if there is a vtk-opencv-bridge similar to the itk-opencv-bridge.

BenK gravatar imageBenK ( 2018-08-11 16:43:19 -0500 )edit