LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save Bit Depth in MAX

 

I set Bit Depth to be 12 for my Linescan camera. It's OK when I view the image frame in MAX, but it is shown in 16 bit when I view it in Matlab. Is there any way that I can save it into 12 bit image data instead of 16 bit? The version of MAX is 4.5.

 

Thanks

0 Kudos
Message 1 of 6
(3,076 Views)

You can not address anything smaller than a byte in your computer memory. So your 12 bit will be converted to 16 bit.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 6
(3,070 Views)
I have no problem to save the 12-bit image and display it in Matlab with another frame grabber and it's manufacturer-supplied software. Just can not get it with NI MAX. I understand that byte is smallest addressable unit in memory. but isn't there anything in the image header to tell it's a 12-bit image?
0 Kudos
Message 3 of 6
(3,062 Views)

Hi polarfox,

 

"isn't there anything in the image header to tell it's a 12-bit image?"

 

What kind of picture format do you use? There are some formats that allow 12bit images for sure... But they aren't very "standard" and afaik not implemented in LabView...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,056 Views)

Hi GerdW, PNG is the format that I am using.  Thanks.

0 Kudos
Message 5 of 6
(3,054 Views)

Hi polarfox,

 

well, "is not implemented in LabView" still applies...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,051 Views)