01-27-2011 04:41 AM
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
Solved! Go to Solution.
01-28-2011 07:50 AM
Hi xridder,
What IR camera do you use? And what version of LabView?
Cheers,
Philip
01-28-2011 07:56 AM
I use:
Labview 2010
FLIR Systems Thermovision A40
cheers
xridder
01-28-2011 09:06 AM
Hi xridder,
i cannot open your VI because you use some external VI's from FLIR Systems. Can you please add them?
01-28-2011 09:12 AM
I've found this: http://decibel.ni.com/content/docs/DOC-9894
maybe this can help you.
01-31-2011 07:19 AM
Hey,
have you already solved the problem?
I've found this about the IMAQ WriteFile VI:
Writes an image to a file in PNG format.
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.
|
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.
Cherrs,
Philip
01-31-2011 09:23 AM
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
01-31-2011 10:01 AM
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?
02-01-2011 02:36 AM
...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.^^
02-01-2011 09:56 AM
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.