color table lookup

New Message Reply Date view Thread view Subject view Author view

Clara Chan (clara@waltz.jpl.nasa.gov)
Thu, 1 Jul 1999 16:48:23 -0700


Hi,
I've been trying to modify the myLutIO.cxx and mvInitGfx to read our color
tables. But I haven't been able to succeed. Here's what happened:

If my data range is 0 to 200, has a table arranged in RGBA RGBA....
in unsigned byte format.
Is it true that for a data value of 0, it should map to the first
entry of the lookup table? Somehow from the image, it looks like
the mapping is reversed (mapped to the last entry of color table)

I used the following in MonsterVolumizer.cxx:

      voAppearanceActions::dataScaleRange(brick, 0, 200);

      aLookupTable = new voLookupTablePost(internalFormat,
                                           lookupLength,
                                           externalFormat,
                                           dataType,
                                           lookupEntries);

        where internalFormat is RGBA8_EXT
              externalFormat is RGBA
              dataType is UNSIGNED_BYTE
              lookupLength is 256

Do you have any suggestions?
Thanks
Clara


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 14:11:13 PST