LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GigE Vision - 12bit packed image

I have a AVT Prosilica GX3300 camera that I am trying to acquire 12-bit PACKED imagery.  I am able to send the commands for the camera to operate in that mode no problem, but when I go to write the image into a binary data file, it saves it as 16-bit.  My guess is that LabVIEW is upacking the data to display it to the screen; however, I really want to have it packed when writing to disk to minimzie storage requirements.  Any clue? 

0 Kudos
Message 1 of 4
(3,573 Views)

The Image datatype can only store images in multiples of 8bits. This is why a 12bit image will be represented with an I16 image in LabVIEW.

This KB gives some details.

 

 

Christian

0 Kudos
Message 2 of 4
(3,540 Views)

You can convert this to an array and repack it and write thr binary packed data if you need this.

 

Imaq to array, convert this to a flat 1d array of U8 and unpack by writing, just a combo of putting the nibbles back together and removing the extra 4bits out of each 16bits.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 4
(3,525 Views)

If you have the 16-bit data, I wrote this one time to accomplish the same thing.  I basically switched between writing a byte (8-bit) and a word (16-bit) while passing the extra nibble around.

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,519 Views)