How to convert kinect color image resolution in 512x424 format ?

This mathworks documenatation link shows kinect v2 color image resolution is 640x480. but when run this code my kinect v2 shows '1920x1080'.. how they convert it ?

8 commentaires

The imaq.VideoDevice objects that you create, namely the colorDevice and depthDevice objects in the example, have a property called VideoFormat. You can try to set this to other 'applicable' values. One way to do this is to use the dot operator as follows.
colorDevice.VideoFormat = '<press tab key to get a list of applicable values. Note, press tab key after starting a single quote>'
no completions found shows
kinect v2 only supports 1920x1080 for color ... how can i convert it in 512x424....if it is hardware limitation then how can i do this in code...so that matlab shows the video for color including 512x424 format
You can try to resize the image using imresize. Documentation here.
my problem is that... In kinect, depth stream supported format is 512x424 and for color stream supported format is 1920x1080. so when i take the image for both stream then their coordinates doesnot match even if i resize them.. i want to just take the image using same resoltuion for both stream.
Have you tried running this example with your device? Does it work at all? Can you tell us what happens when you try to run it?
yes i ran it..but kinect v2 resolution and the documentation resolution are not same...

Connectez-vous pour commenter.

Réponses (1)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by