rosbag conversion

asked 2017-10-20 11:18:23 -0500

rnunziata gravatar image

updated 2017-10-20 13:46:16 -0500

gvdhoorn gravatar image

I want to convert a image Mat type CV_32FC1 containing a depth map back into a Mat CV_16UC1 from which it originally came. Does the code below do this? Do I have normailze it? ( 1/255.0)? I hope this question is acceptable here if not I will l post else where.

cv::Mat inputData = cv::Mat(cv::Size(640, 480), CV_16UC1);
inputData.convertTo(cv_ptrD->image, CV_16UC1);
edit retag flag offensive close merge delete


will post under a different topic

rnunziata gravatar image rnunziata  ( 2017-10-20 12:26:17 -0500 )edit

Why? Please just edit your question in the future if you want to update it. Please don't post new questions unnecessarily.

I've merged your new question into this one.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-20 13:47:02 -0500 )edit