LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in saving PNG from IR camera using IMAQdx

Dear all,

I'm struggling with an acquisition and saving VI that I would like to use to save to my PC images taken with a FLIR thermal camera. The VI acquires the data correctly and displays them correctly in the indicator, but I cannot save them with the correct palette (I would like the "Temperature" or "Rainbow" one) and seems to work only in grayscale. I've tried to connect the GetPalette to a WindDraw vi to test it and it works correctly, displaying the image in the window with the correct colours, but only saves it in grayscale.

Can anyone help?

Thanks in advance

Valeria

0 Kudos
Message 1 of 4
(1,474 Views)

I passed this on to a colleague of mine who also uses FLIR cameras and knows about colorizing Grayscale images.  I'm not sure he uses the LabVIEW Forums, but if he gets back to me, I'll let you know.

 

Bob Schor

0 Kudos
Message 2 of 4
(1,439 Views)

Valeria,

 

My colleague (who introduced me to LabVIEW Vision and IMAQdx about eight years ago) reminded me that IMAQ Image Create creates, by default, a Grayscale U8 Image.  You need to create a U32 RGB Image, which has 32 bits/pixel to carry color encoding, and then apply coloring.

 

I'm not sure I understand the following comments, so I'll just quote him:

"This vi is a bit more complicated than necessary.  There is some attention paid to falling behind and there's no intense image computation going on.

This may be archaic code -- you have to work hard to make the computer not be able to service an image stream these days unless you are attempting a lot of frame by frame computational work that's not evident here."
 
He also noted "New users should use the Express VIs -- there's no reason to look under the hood generally."
 
I hope the comment about the Grey vs RGB Create Image is useful, and you can make sense of the other comments.
 
Bob Schor
 
0 Kudos
Message 3 of 4
(1,395 Views)

Here are some options I can think of

 

snip.png

0 Kudos
Message 4 of 4
(1,374 Views)