Resize kinect data

asked 2015-07-30 05:03:23 -0500

Giacomo gravatar image

updated 2015-09-30 14:47:21 -0500

Hi, I have a 512x424 CV16U image which is the depth data of the kinect2. I want to resize it to 640x480 interpolating it. I tried with cv::resize(depth, depth_resized, cv::Size(640,480)) but the image becomes black :( Just to check if everything is correct I copied the original image in a bigger mat (640x480) and it works depth.copyTo(depth_resized(cv::Rect(64, 28, 512, 424)));

I think that the interpolation process is interpolating the data as if it was 8bit instead of 16. Thanks

edit retag flag offensive close merge delete