Hi,
I am stuck at coloring 16bit greyscale pictures without losing the
resolution of 16bit, as it would happen when using the
WindMapping-thing (which reduces the displayed resolution to 8bit).
I figured that what I would need is probably an array consisting of
32536 RGB-color clusters to convert all greyscale values to a color,
preferrably a rainbow spectrum.
I tried to create such an array via the HSL-model, where the coding of
a rainbow spectrum is easier than in RGB, and then converted it to U32
for obtaining the RGB-colors. The problem here is: Although HSL is
24bit in IMAQ, I can only get about 200 different colors when using
constant saturation and luminance. I understand that 24bit is made of
3x8bit for H,S and L. - However, as the HSL-model describes colors as
Hue (0-359°); Saturation (0-100%) and Luminance (0-100%) I don't really
understand, how those 360 Hue-values could possibly be put into
U8-representation required by the IMAQ ColorToRGB-vi.
Does anyone have an idea how to obtain a 24bit-rainbow spectrum coded
in 32536 distinct colors other than manually creating all the entries?
The reason I need this is to determine whether it will be necessary to
process the images all the way through using I16 or if can be done with
U8 as well without losing too much of detail.
I couldn't figure out any other way to DISPLAY true 16bit other than
the detour using 24bit pictures. It is only about display, not about
processing, which can be well done using the IMAQ I16 format...
Thanks for any input!
C.