Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get 16 bit depth image from Ni Vision Acquisition

Actually, I am using a Intel RealSense SR300 to acquire 16 bit grayscale depth image from the camera. However, it is returning RGB image which is whole green. 

Can anybody suggest how to get the the required depth image??

 

Regards,

Kashish Dhal

0 Kudos
Message 1 of 33
(5,089 Views)

use I16 for imaq that you regard it as buffer of your images  and if this not work use imaq cast image 

0 Kudos
Message 2 of 33
(5,080 Views)

Thankyou for replying.

Can you explain in detail a little bit ??

 

Regards,

Kashish Dhal

0 Kudos
Message 3 of 33
(5,078 Views)

send your camera acquisition code I try to change it in way that you want 

0 Kudos
Message 4 of 33
(5,064 Views)

Attached code

0 Kudos
Message 5 of 33
(5,060 Views)

Sorry, it likely isn't possible to get 16-bit images using Vision Acquisition with that camera. It uses DirectShow to allow applications like Vision Acquisition to acquire images in a generic fashion without leveraging Intel's SDK directly. DirectShow is aimed at webcams and standard video streams and is mostly limited to 8-bit image depths (either single channel or RGB) unless you leverage custom video formats.

 

To get 16-bit images you'd probably have to use some sort of LabVIEW wrapper around their native SDK.

Message 6 of 33
(5,019 Views)

So, is there any possibility to covert the acquired 32 bit RGB images into 16 bit grayscale ??

By separating the 4 four channels and then using the data to get 16 bit ??

 

I don't know much about C++ codes, it is very difficult for me to wrap the intel SDK. Can I get some help in that ??

 

And how to use DirectShow to get 8 bit images ??

 

Regards,

Kashish Dhal

 

 

0 Kudos
Message 7 of 33
(5,007 Views)

Well, it is completely up to how their DirectShow driver forms the data into 32-bit RGB images. There may be extra bit depth information in between the different color channels that you could combine somehow. You're probably going to dig deeper into their documentation.

0 Kudos
Message 8 of 33
(5,005 Views)

You might try getting in touch with the Intel engineer who gave this presentation at NIWeek 2017. I believe he wrote a LV wrapper for RealSense cameras. http://forums.ni.com/ni/attachments/ni/niweeksessions/316/3/Advancing%203D%20Vision%20Processing%20f...

 

0 Kudos
Message 9 of 33
(4,997 Views)

Thank you Joseph, I wrote them an e-mail regarding the same.

 

I have a question that can we change camera settings using IMAQdx property node found in the NI-IMAQdx palette ??

 

Regards,

Kashish Dhal

0 Kudos
Message 10 of 33
(4,958 Views)