07-10-2012 08:59 AM
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?
07-11-2012 08:58 AM
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
07-11-2012 01:11 PM
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.
07-11-2012 01:43 PM - edited 07-11-2012 01:46 PM
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.