06-29-2006 11:18 AM
06-29-2006 01:06 PM
What is your LabVIEW version?
(Newer versions of "draw flattened pixmap" don't have a color map terminal (the color map is part of the image data cluster).)
06-29-2006 05:26 PM
Sorry, I should have mentioned that I'm using v6.1
dave
07-03-2006 04:00 AM
07-03-2006 05:07 AM
Adam,
Many thanks for the interest....
I've attached 3 jpegsshowing what I'm after. Monochrome.jpg is the original fast video camera image
DefaultMap.jpg is the same frame with the color map input left unwired on the "DrawFlattenedPixmap.vi" component,
this is the color map I'd like to get hold of.
MyRainbow.jpg is my attempt, produced by taking a rainbow bitmap and modulating this with a repeating greyscale to give 'fringes' repeating every 8 intensity values. It helps with the job but doesn't look as clear to follow as the default map.
regards
dave Langstaff
07-03-2006 10:42 AM
Hi Dave,
Quick question. Is there anyway you could post the code you are using to write the images to file and to open them back up again (or just a screen shot)
The open file options include a use colourmap input (as far as I can remember) is it possible you need to change these settings?
AdamB
07-03-2006 11:00 AM
Adam,
Here is the vi that I've used to create the bmp files, its in LV6.1 and I've marked up the wire that I can remove to get the display using the 'default' map.
I'm reading them beack in using paintshop/ms preview etc
07-03-2006 11:20 AM
Dave,
If you double click the draw unflattened pixmap vi and look at the colour map what does this show? (my default is completely blank (they all look grey)
I can not get the default to display anything near to the colours you have there.
AdamB
07-03-2006 11:37 AM
Dave,
(sorry, I no longer have LabVIEW 6.1 installed, but maybe you can do something similar to the following. (Some of the image tools got enhanced in post 6.1, so things might be a bit different in your setup).
Once you have the desired picture on the front panel, have you tried one of the following two possibilities:
Then save the resulting output? (You could even unbundle the color table from the image data cluster for future use).
07-04-2006 03:46 AM
Adam,
Under 6.1, the default value for the color map on "draw flattened pixmap.vi" is empty. Looking at the code inside the vi, it detects this and sends an empty color map to the picture component.
By flattening the data sent to the picture component to a string and looking at it as hex, I can see the color map in the data, it starts at offset 38 into the data string and then goes on for a further 2048 bytes. Each 32bit word in the table is expanded into 8 bytes of the color map by repeating each byte.
It looks from this that the default color table is provided by the picture component...