DESY ACOP Beans Home

de.desy.acop.video.displayer
Class ImageCLUT

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

public class ImageCLUT
extends java.lang.Object

Represents a Color LookUp Table (CLUT) for TINE images.

Author:
David Melkumyan, DESY Zeuthen

Constructor Summary
ImageCLUT(ColorMap colorMap, int[] nBits)
           
 
Method Summary
 ColorMap getColorMap()
          Returns the color map
 int[] getComponentSize()
          Returns an array of the number of bits per color component.
 int getComponentSize(int componentIdx)
          Returns the number of bits for the specified color component.
 int getMaxBits()
           
 int getMaxValue()
           
 int getMinValue()
           
 int getNumComponents()
          Returns the number of color components
 int getPixelSize()
          Returns the number of bits per pixel.
 boolean isGreyscale()
          Returns true if number of color components is equal to 1, otherwise false
 boolean isRGB()
          Returns true if number of color components array is equal to {8, 8, 8}, otherwise false.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageCLUT

public ImageCLUT(ColorMap colorMap,
                 int[] nBits)
Method Detail

getColorMap

public ColorMap getColorMap()
Returns the color map

Returns:
the color map

getComponentSize

public int getComponentSize(int componentIdx)
Returns the number of bits for the specified color component.

Parameters:
componentIdx - the index of the color component
Returns:
the number of bits for the color component at the specified index.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if componentIdx is greater than the number of components or less than zero
java.lang.NullPointerException - if the number of bits array is null

getComponentSize

public int[] getComponentSize()
Returns an array of the number of bits per color component.

Returns:
an array of the number of bits per color component

getNumComponents

public int getNumComponents()
Returns the number of color components

Returns:
the number of color components

getPixelSize

public int getPixelSize()
Returns the number of bits per pixel.

Returns:
the number of bits per pixel

isRGB

public boolean isRGB()
Returns true if number of color components array is equal to {8, 8, 8}, otherwise false.

Returns:
true if number of color components array is equal to {8, 8, 8}, otherwise false

isGreyscale

public boolean isGreyscale()
Returns true if number of color components is equal to 1, otherwise false

Returns:
true if number of color components is equal to 1, otherwise false

getMaxBits

public int getMaxBits()

getMinValue

public int getMinValue()

getMaxValue

public int getMaxValue()

toString

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


Copyright © 2010. All Rights Reserved.