I have to produce RGB Depth alignment image from Kinect in Matlab. I followed this link of Matlab but it created an error by saying that
The resolutions of the depth image and the color image should be the same.
Resolution of RGB is 1920*1080 and Depth image is 512*424. I tried to change these properties in Kinect sensores but it says that these are just read only values, we can not change them.
Then I followed another link and tried to resize Depth Image to RGB, and again run alignment command of Matlab link, this time it says that:
Error using reshape To RESHAPE the number of elements must not change.
Error in imaq.internal.KinectDepth2ColorMap
Error in vision.internal.visionKinectDepthToColorMap
Error in alignColorToDepth
I also tried to resize RGB image to Depth and then tried to do alignment, results were not correct. More than 70 percent portion was full black and then in top right corner there was resized RGB image. These results are not acceptable.
I tried to find a better solution of doing alignment but till now I did not find anything helpful. If anybody can help me I will be thankful to you.