loci.formats
Class ChannelFiller

java.lang.Object
  extended by loci.formats.ReaderWrapper
      extended by loci.formats.ChannelFiller
All Implemented Interfaces:
IFormatHandler, IFormatReader, StatusReporter

public class ChannelFiller
extends ReaderWrapper

Expands indexed color images to RGB.

Source code:
Trac, SVN


Field Summary
 
Fields inherited from class loci.formats.ReaderWrapper
reader
 
Fields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP
 
Constructor Summary
ChannelFiller()
          Constructs a ChannelFiller around a new image reader.
ChannelFiller(IFormatReader r)
          Constructs a ChannelFiller with a given reader.
 
Method Summary
 short[][] get16BitLookupTable()
          Gets the 16-bit color lookup table associated with the most recently opened image.
 byte[][] get8BitLookupTable()
          Gets the 8-bit color lookup table associated with the most recently opened image.
 boolean isFalseColor()
          Returns false if isIndexed is false, or if isIndexed is true and the lookup table represents "real" color data.
 boolean isIndexed()
          Gets whether the images are indexed color.
 byte[] openBytes(int no)
          Obtains the specified image from the current file as a byte array.
 BufferedImage openImage(int no)
          Obtains the specified image from the current file.
 
Methods inherited from class loci.formats.ReaderWrapper
addStatusListener, close, close, fileGroupOption, getChannelDimLengths, getChannelDimLengths, getChannelDimTypes, getChannelDimTypes, getCoreMetadata, getCoreMetadata, getCurrentFile, getDimensionOrder, getDimensionOrder, getEffectiveSizeC, getEffectiveSizeC, getFormat, getImageCount, getImageCount, getIndex, getIndex, getMetadata, getMetadata, getMetadataStore, getMetadataStore, getMetadataStoreRoot, getMetadataStoreRoot, getMetadataValue, getMetadataValue, getPixelType, getPixelType, getReader, getRGBChannelCount, getRGBChannelCount, getSeries, getSeries, getSeriesCount, getSeriesCount, getSizeC, getSizeC, getSizeT, getSizeT, getSizeX, getSizeX, getSizeY, getSizeY, getSizeZ, getSizeZ, getStatusListeners, getSuffixes, getThumbSizeX, getThumbSizeX, getThumbSizeY, getThumbSizeY, getUsedFiles, getUsedFiles, getZCTCoords, getZCTCoords, isGroupFiles, isInterleaved, isInterleaved, isInterleaved, isInterleaved, isLittleEndian, isLittleEndian, isMetadataCollected, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOrderCertain, isOriginalMetadataPopulated, isRGB, isRGB, isThisType, isThisType, isThisType, openBytes, openBytes, openBytes, openImage, openThumbBytes, openThumbBytes, openThumbImage, openThumbImage, removeStatusListener, setGroupFiles, setId, setId, setMetadataCollected, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setSeries, setSeries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelFiller

public ChannelFiller()
Constructs a ChannelFiller around a new image reader.


ChannelFiller

public ChannelFiller(IFormatReader r)
Constructs a ChannelFiller with a given reader.

Method Detail

isIndexed

public boolean isIndexed()
Description copied from interface: IFormatReader
Gets whether the images are indexed color.

Specified by:
isIndexed in interface IFormatReader
Overrides:
isIndexed in class ReaderWrapper

isFalseColor

public boolean isFalseColor()
Description copied from interface: IFormatReader
Returns false if isIndexed is false, or if isIndexed is true and the lookup table represents "real" color data. Returns true if isIndexed is true and the lookup table is only present to aid in visualization.

Specified by:
isFalseColor in interface IFormatReader
Overrides:
isFalseColor in class ReaderWrapper

get8BitLookupTable

public byte[][] get8BitLookupTable()
Description copied from interface: IFormatReader
Gets the 8-bit color lookup table associated with the most recently opened image. If no images have been opened, or if isIndexed() returns false, then this returns null. Also, if getPixelType() returns anything other than INT8 or UINT8, this method will return null.

Specified by:
get8BitLookupTable in interface IFormatReader
Overrides:
get8BitLookupTable in class ReaderWrapper

get16BitLookupTable

public short[][] get16BitLookupTable()
Description copied from interface: IFormatReader
Gets the 16-bit color lookup table associated with the most recently opened image. If no images have been opened, or if isIndexed() returns false, then this returns null. Also, if getPixelType() returns anything other than INT16 or UINT16, this method will return null.

Specified by:
get16BitLookupTable in interface IFormatReader
Overrides:
get16BitLookupTable in class ReaderWrapper

openBytes

public byte[] openBytes(int no)
                 throws FormatException,
                        IOException
Description copied from interface: IFormatReader
Obtains the specified image from the current file as a byte array.

Specified by:
openBytes in interface IFormatReader
Overrides:
openBytes in class ReaderWrapper
Throws:
FormatException
IOException

openImage

public BufferedImage openImage(int no)
                        throws FormatException,
                               IOException
Description copied from interface: IFormatReader
Obtains the specified image from the current file.

Specified by:
openImage in interface IFormatReader
Overrides:
openImage in class ReaderWrapper
Throws:
FormatException
IOException