LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues using IMAQdx Get Image Data.vi, with 8-bit, 12-bit and packed 12-bit pixel formats

I was running into the same issue, and found that there was a very simple solution.

 

The Basler camera is outputting a 12 bit value, the get image VI takes that 12 bit value and splits it into two 8 bit values [last 8 bits, first 4 bits]. If you're taking the 1920x1200 image, you would expect 2,304,000 values in the array, however you will see 4,608,000 values in the array, if the integration time is low the array will have a zero in every other value, but as you increase integration time the second column will increase up to 15.

 

Initially we were throwing away the second value, thinking it was just padding, however it is data that must be used to reconstruct the image. You can take the second value, multiply it by 256, then add it to the first column. Do this for the entire array and you will have the full image with 12 bit resolution.

0 Kudos
Message 11 of 11
(428 Views)