LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dealing with IMAQ saving 12 bit images as 16 bit

I'm trying to get an image of a CCD camera which has a depth of 12 bit. I read on the forums here that it is stored as 16 bit. I am however curious as to what this means: are the values of the image scaled? So is like a value of 4095 scaled to be a value of 65535? And a value of 2047 scaled to a value of 32767?
Or does it leave the actual values of the pixels unchanged?

0 Kudos
Message 1 of 3
(3,268 Views)

Hi,

 

 May be the 12 bits are converted into 16 bits by augmenting 4 bits at the MSB side.

 I had the similar confusion but with a careful examination i got to know about ths.

 

Regards,

SrikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 3
(3,248 Views)

Hello,

 

Or in other words:

The actual pixel/integer values should stay the same.

You could consider this as a sort of zero-padding at the most significant side.

 

This example can help you understand the concept:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MAjSAM&l=en-US

 

Just have a look at the maximum and minimum values that are being generated in the 2D array.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 3 of 3
(3,205 Views)