LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing color table for intensity graphs

Hi, I've been working on superimposing intensity graphs and I'm almost getting it, I'm just having trouble with color table, it is suppose to be composed of a 1-D array of 256 colors

I have 2 intensity graphs each with a different color table (256 color - 256 locations in the color table array). I need to "squeeze" both color table into a third color table for the superimposing of the 2 intensity graphs. therefore I figure I would take every other color value from each of the first 2 color tables (so each color table shrinks to 128 color) and add the values to form a 3rd color table so that the bottom will correspond to the first color table and the top will correspond to the 2nd color table.

I can do this manually, but it takes WAY too long, so I've been trying to use some kinda of algorism, but I cannot succeed. Anyone have any suggestions? it seems that color table is an unusual kinda of array

My attempted program is attached.


thanks very much!!
0 Kudos
Message 1 of 3
(3,085 Views)
Brian,

I think this is what you're after (attached). The easiest thing to do is to decimate, then concatenate your original color tables to form your new "squeezed" color table. However, keep in mind that you also have to squeeze, or remap, your underlying data values to correspond with either one half of the color table or the other.

See if what I did makes sense.

Regards,
John
0 Kudos
Message 2 of 3
(3,077 Views)
thanks a lot for your help
0 Kudos
Message 3 of 3
(3,062 Views)