LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Image with colour map

Solved!
Go to solution

Hi everyone 😄

 

I wrote a program to save an image from an IR camera. when u end it the last picture is saved. The saving works well, but even if i combine it with a colour map, its always grey when saved as png. I would like to know where i can save it in the same colour map the picture is showing during the program run. I appreciate any help that helps...^^

 

cheers

 

xridder Smiley Very Happy

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 1 of 18
(4,642 Views)

Hi xridder,

 

What IR camera do you use? And what version of LabView?

 

Cheers,

Philip

0 Kudos
Message 2 of 18
(4,616 Views)

I use:

          Labview 2010

          FLIR Systems Thermovision A40

 

cheers

xridder

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 3 of 18
(4,611 Views)

Hi xridder,

 

i cannot open your VI because you use some external VI's from FLIR Systems. Can you please add them?

 

 

0 Kudos
Message 4 of 18
(4,601 Views)

I've found this: http://decibel.ni.com/content/docs/DOC-9894

maybe this can help you.

0 Kudos
Message 5 of 18
(4,598 Views)

Hey,

have you already solved the problem?

 

I've found this about the IMAQ WriteFile VI:

 

IMAQ Write PNG File 2

Writes an image to a file in PNG format.

IMAQ Write PNG File 2

/images/reference/en-XX/help/370281M-01/c1dnclst.gif

Color Palette is used to apply a color palette to an image. Color Palette is an array of clusters constructed by the user or supplied by the IMAQ GetPalette VI. This palette is composed of 256 elements for each of the three color planes (red, green, and blue). A specific color is the result of applying a value between 0 and 255 to each of the three color planes. If the three planes have identical values, a gray level is obtained (0 specifies black and 255 specifies white). If the image type requires a color palette and it is not supplied, a grayscale color palette is generated and written.

/images/reference/en-XX/help/370281M-01/cu8.gif

Red is the value of the red color plane.

/images/reference/en-XX/help/370281M-01/cu8.gif

Green is the value of the green color plane.

/images/reference/en-XX/help/370281M-01/cu8.gif

Blue is the value of the blue color plane.

 

 

But why don't you use the IMAQ GetPalette VI instead of your switch-case structure?

 

Selects a display palette. Five predefined palettes are available. To activate a color palette, choose a code for Palette Number and connect the Color Palette output to the input Color Palette of the IMAQ WindDraw VI.

IMAQ GetPalette

 

 

Cherrs,

Philip

 

0 Kudos
Message 6 of 18
(4,566 Views)

hey,

 

this may be a shock for you, but the IMAQ get palette VI is ONE of the cases in the case structure. But it wont work either way...

I dont understand this one:  If the image type requires a color palette and it is not supplied, a grayscale color palette is generated and written.

As you can see the colour palette is linked to the block, and the palette is definiteliy not only grey^^

 

I tried the first solution: the decibel.ni ...

Somehow it worked with the testpalette (although it makes no sense to me that i chould use an IMAQ cast image for this problem). So maybe i should look in this direction. Now i have to make a look up table out of the colour palette. If im not able to do it, you will hear again from me^^


Cheers,

xridder

 

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 7 of 18
(4,555 Views)

Ah ok. Now i understand. You use two customized color palettes for your cam, don't you? i have one general question, because i cannot run your VI: Why do you have two image out wires? Why don't you use the wire from the IMAQ WinDraw VI?

0 Kudos
Message 8 of 18
(4,546 Views)

...yes, i do.

and he two wires have no special reason. At first it was one, as you suggested, but it didnt work so i just tried anything else and didnt change it back.^^

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 9 of 18
(4,532 Views)

Why do you use as image type greyscale? If you want it coloured i would change it to RGB (U32) as you can see in my screenshot.

0 Kudos
Message 10 of 18
(4,507 Views)