Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get 16 bit depth image from Ni Vision Acquisition

sorry for late answer I think maybe based on xml configuration file labview use streaming in 32bit format for supporting u16 
and also maybe casting image in this case work  or also we can use convert image to array u32 and then convert it ti u16 array and reimage it to show test this vi and tell us if if work or not 

0 Kudos
Message 21 of 33
(1,376 Views)

This only gives me a black image and nothing else.

 

Regards,

Kashish Dhal

0 Kudos
Message 22 of 33
(1,369 Views)

Hatef and Kashish,

 

From what I understand, the problem isn't as simple as taking an RGB image and casting it as a U16. The Intel Realsense cameras acquire 2 images: an RGB image and a U16 "depth" image that can be used for 3D imaging. It seems that kashish is trying to get that depth image, but you can't get that information simply by converting the RGB image. 

0 Kudos
Message 23 of 33
(1,346 Views)
if this camera is design for 3d stereo in this case camera out put should be disparity image indeed and should be behave with this like disparity to change it depth based on related equations but if this camera just capture 16bit depth resolution in intensity value but camera interface for max could not support it and driver stream data in aRGB mode in this case we have to find this streaming method to convert 16 bit data to 32 bit aRGB data and use reverse operation to get 16 bit data
0 Kudos
Message 24 of 33
(1,336 Views)

I did not understand. 

 

Can you attach the code please ?

 

Regards,

Kashish Dhal

0 Kudos
Message 25 of 33
(1,330 Views)

Hi Kashish,

 

I was wondering if you made any progress? I've come across your posts on multiple forums and unforgettably non seem to have resulted in success thus far.

 

I've hooked up a Intel RealSense SR300 and it shows up in Max as three separate camera's (see attached image)

The depth came shows the problem Kashish is describing, when using the YUY2 codec you get just a green screen. The other three video modes use codecs that are not supported.

I assume the structure is the same as the one that is recognized as YUY2, and only the frame rate is higher. But I have no idea about the data structure....

IntelRealsenseMax.jpg

 

Regards,

Tom

 

0 Kudos
Message 26 of 33
(1,227 Views)

Is Kashish still working on this? This is a bit of an old post. From the information presented previously, I'm doubtful the Intel RealSense­ Camera is compatible with extracting a 16-bit depth image. 

 

Let us know if this is something still in the works though Kashish.

0 Kudos
Message 27 of 33
(1,211 Views)

Tom,

 

Unfortunately, you cannot access the 16-bit depth image of the RealSense camera using the IMAQdx driver. That only way to currently use the camera with LabVIEW would be to write a LabVIEW wrapper around the RealSense SDK functions.

 

-Jordan

0 Kudos
Message 28 of 33
(1,209 Views)

Yes, LabVIEW drivers can't read 16 bit image and I gave up on this project as I didn't want to write the wrapper.

 

Thanks, 

Kashish Dhal

0 Kudos
Message 29 of 33
(1,206 Views)

If anyone does succeed in writing a LabVIEW wrapper for the RealSense SDK in order to use the depth image of the RealSense cameras, please post it in the LabVIEW community examples.

0 Kudos
Message 30 of 33
(1,200 Views)