LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save a picture on disc

I am using Q-Imaging camera to grab images through a labview program. When i try to save the captured images, they get stored as 24Bit RGB image, where as I want to save it as 16 Bit image. Kindly suggest.
0 Kudos
Message 1 of 4
(2,819 Views)
IMAQ is the official NI answer to any image problem.  But we could use a few more details to suggest something a bit more coherently (exactly how are you saving the image, can you post code).  If you want a free solution that probably won't take long, use the command line ImageMagick tools to convert your image from a 24bit to a 16bit.  You will still be saving the 24bit image, but converting it to a 16bit one and deleting the original.  I haven't tried calling ImageMagick from the DLL, but that should work as well, allowing you to save directly to a 16bit image.
0 Kudos
Message 2 of 4
(2,800 Views)
When you say 16 bit image, do you mean 16 for all channels (which is 5 bit for Red, 5 bit or 6 bit for Green, and 5 bit for Blue), or 16 bit per channel (which is really 48 bit RGB)?  I think latest IMAQ can handle the later one.
 
 
George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 3 of 4
(2,784 Views)
Hey sameer3540,
The easiest solution to converting your images is to use the IMAQ Cast Image VI. This VI comes with the NI Vision software, and it can easily convert your RGB 24 bit images into 16 bit images so that you can save them. Let me know if you have any questions. Thanks.
 
Regards,
DJ L.
0 Kudos
Message 4 of 4
(2,761 Views)