Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how does a 14bits camera generate a 16 bits image with IMAQdx?

Solved!
Go to solution

Hi,

I am using Guppy Pro F-031B firewire camera.   And I am programing it with IMAQdx. 
The AD converter of this camera is 14bits,  and I was expecting that the counts per pixel of this camera should not exceed  2^14.  In the attached picture,  the maximum count for each pixel is 18132, which is larger than the 2^14.  I do set a 16bits grayscale output.  How did a 14bits camera generate a 16bits output usually? 


My setup:
1. Ni IMAQdx with Microsoft driver.
2.   VideoMode = "Format 7, Mode 0, 656 x 492"
       PixelFormat = "Mono 16"
       BitsPerPixel = "Use hardware value"
       PixelSignedness = "un Signed"
       ShiftPixelBits = "false"
       AutoExposure, Brightness,Gain,Gamma=ignored

Thank you very much!

best,
wen

0 Kudos
Message 1 of 4
(4,224 Views)
Solution
Accepted by topic author xu27

IMAQdx does not shift or stretch the data, as far as I know. Change the endianess, and see if that makes a difference.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 4
(4,217 Views)
Solution
Accepted by topic author xu27

John,

 

Thank you! 

I found the problem.  My camera default setting is shift the bits. So 1111   1111   1111   11 is manupulate into 1111   1111   1111   1100.  

 

Best,

Wen 

0 Kudos
Message 3 of 4
(4,213 Views)
Solution
Accepted by topic author xu27

Yes, many cameras left shift the data so the range is identical regardless of the number of bits. This allows image processing code to run identically on any image from 10-16 bits.

Message 4 of 4
(4,211 Views)