This widget could not be displayed.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a 32 bit image

Solved!
Go to solution

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 ?

0 Kudos
Message 1 of 12
(4,550 Views)

Look at the example named "ReadFile Example" that ships with the Vision Development Modul.  This example supports reading color images from disk.

0 Kudos
Message 2 of 12
(4,544 Views)

No that will not work for me. I am able to read 24 bit RGB images. I wanted to read 32 bit images

0 Kudos
Message 3 of 12
(4,537 Views)

What type of 32bit image do you have?  You know about the available image types in NI Vision?

0 Kudos
Message 4 of 12
(4,528 Views)

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.

 

 

0 Kudos
Message 5 of 12
(4,524 Views)

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?

Message 6 of 12
(4,501 Views)

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.

0 Kudos
Message 7 of 12
(4,495 Views)

Hi Anoop,

 

There is a some kind of scripting available in GIMP. You can use that for batch conversion.

 

Regards

 

Javed

0 Kudos
Message 8 of 12
(4,492 Views)

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).

Message 9 of 12
(4,482 Views)

I'd also vote for trying ImageMagick - I've called it from LabVIEW (using System Exec.vi) with good results.

0 Kudos
Message 10 of 12
(4,474 Views)