rosbag conversion

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

rnunziata gravatar image

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

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

Comments

will post under a different topic

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

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 -0600 )edit