depth data to mat type

asked 2014-08-28 04:09:16 -0600

Hello, I am trying to display a depth image from a tof camera using imshow but I don't really know how to convert the depth data to a Mat image. My depth data is a 40000 element array (200x200) pixels.

If anyone could please help me it would be great, thank's in advance!

edit retag flag offensive close merge delete

Comments

try to find out, how to acess the depth pixels and what format they are in(maybe: ushort in the [0..1024] range), then people can help you setting up the correct Mat constructor.

berak gravatar imageberak ( 2014-08-28 04:15:39 -0600 )edit