Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Resize kinect data

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

Resize kinect data

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