DESY ACOP Beans Home

de.desy.acop.video.displayer
Class ColorLookupTable

java.lang.Object
  extended by de.desy.acop.video.displayer.ColorLookupTable

Deprecated. replaced by LookUpTable

public final class ColorLookupTable
extends java.lang.Object

ColorLookup creates, prepares and maintains a false color table necessary to decode pure grayscale image data to true color display. Three false color tables (mappings) are supported at the moment:

An important criteria to mention is that these mappings support scaling to physical and effective bits per pixel settings. For example if source grayscale data is 16bpp physically encoded (for performance reason) but only 12 of these bits are effectively used, the false color table is designed to support 0 as darkest and 4195 (12 bit max) as brightest value. All other value (for 16 bit: 4096 to 65535) are encoded in magenta to easily detect them as being illegal. In comparison to that, the output format is always java TYPE_INT_ARGB for sake of simplicity.
The main use is to generate a 1-dimensional false-color-mapping table that accepts as index any physically valid grayscale number and returns the matched pixel ready for being placed to the output drawing buffer.

Author:
sweisse, mdavid

Constructor Summary
ColorLookupTable(ColorMap colorMap, int bytesPerPixel, int effBitsPerPixel)
          Deprecated. Constructs a false color lookup table
 
Method Summary
 int getBytesPerPixel()
          Deprecated.  
 int getEffBitsPerPixel()
          Deprecated.  
 int[] getRGB()
          Deprecated. Returns the lookup table data by reference.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorLookupTable

public ColorLookupTable(ColorMap colorMap,
                        int bytesPerPixel,
                        int effBitsPerPixel)
Deprecated. 
Constructs a false color lookup table

Parameters:
colorMap - color map (allowed values are ColorMap.GRAYSCALE, ColorMap.PITZ, ColorMap.JET)
bytesPerPixel - physical bytes per pixel (allowed values are 1, 2, 3)
effBitsPerPixel - effective bits per pixel (effective bits must fit inside physical bits per pixel)
See Also:
ColorMap
Method Detail

getRGB

public int[] getRGB()
Deprecated. 
Returns the lookup table data by reference.

Returns:
the data array of this ColorLookup.

getBytesPerPixel

public int getBytesPerPixel()
Deprecated. 
Returns:
physical bytes per pixel

getEffBitsPerPixel

public int getEffBitsPerPixel()
Deprecated. 
Returns:
effective bits per Pixel

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.