06-20-2012 03:55 AM
Hello Everybody
I have few 32 bit images and i need to read that 32 bit images in LabVIEW and display or perform further processing .
I am unable to read 32 image using funtion
This gives me blank image output .
After this attempt , i have tried with below code
When i probe at the output of "Read PNG File.vi" i get the correct image but once i unflatten and converted to 24 bit , it gives me a blank image.
One of the example imput image is given below. Most of the vision functions deal with 24 bit images. Can anyone help me in this regard ?
Solved! Go to Solution.
06-20-2012 04:12 AM
Look at the example named "ReadFile Example" that ships with the Vision Development Modul. This example supports reading color images from disk.
06-20-2012 05:13 AM
No that will not work for me. I am able to read 24 bit RGB images. I wanted to read 32 bit images
06-20-2012 05:51 AM
What type of 32bit image do you have? You know about the available image types in NI Vision?
06-20-2012 05:56 AM
The image i have is 32 bit RGB+Alpha layer.
I have shared the attachement here. Pls check it , its bit depth is given as 32 bit where as normal images has 24 bit depth
If I open the image (Attached) in MS Paint , it will display as black box without any white pixels.
06-20-2012 07:38 AM
Yes, you are right. This image type is not supported. (I am no here in image types as I usually use a camera to get one.) Where did you get the image from? Is there a chance to convert it to a supported type?
06-20-2012 07:57 AM
I got the images from project customer. I have already an application which reads RGB images which has bit depth 24 bits and display / perform further image processing.
Do you have any idea how to convert 32 bit images to 24 bit images without the help of LabVIEW? I have successfully converted one 32 image to 24 bit image using GIMP. But i have lots of images like this, it cauese lot of manual work.
06-20-2012 08:00 AM
Hi Anoop,
There is a some kind of scripting available in GIMP. You can use that for batch conversion.
Regards
Javed
06-20-2012 10:32 AM
ImageMagick may be a better choice. It is leaner and designed for command line use, so you can call it from LabVIEW easily. It also supports batch operations on the command line. This assumes it supports your image type (it probably does).
06-20-2012 04:47 PM - edited 06-20-2012 04:47 PM
I'd also vote for trying ImageMagick - I've called it from LabVIEW (using System Exec.vi) with good results.