Robotics StackExchange | Archived questions

rosbag conversion

I want to convert a image Mat type CV32FC1 containing a depth map back into a Mat CV16UC1 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);

Asked by rnunziata on 2017-10-20 11:18:23 UTC

Comments

will post under a different topic

Asked by rnunziata on 2017-10-20 12:26:17 UTC

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.

Asked by gvdhoorn on 2017-10-20 13:47:02 UTC

Answers