ucar.jpeg.colorspace.boxes
Class ChannelDefinitionBox

java.lang.Object
  extended by ucar.jpeg.colorspace.boxes.JP2Box
      extended by ucar.jpeg.colorspace.boxes.ChannelDefinitionBox

public final class ChannelDefinitionBox
extends JP2Box

This class maps the components in the codestream to channels in the image. It models the Component Mapping box in the JP2 header.

Version:
1.0
Author:
Bruce A. Kern

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.jpeg.colorspace.boxes.JP2Box
JP2Box.BoxType
 
Field Summary
 
Fields inherited from class ucar.jpeg.colorspace.boxes.JP2Box
boxEnd, boxStart, dataStart, eol, in, length, type
 
Constructor Summary
ChannelDefinitionBox(RandomAccessIO in, int boxStart)
          Construct a ChannelDefinitionBox from an input image.
 
Method Summary
 int getAsoc(int channel)
           
 int getCn(int asoc)
           
 int getNDefs()
           
 int getTyp(int channel)
           
 String toString()
          Return a suitable String representation of the class instance.
 
Methods inherited from class ucar.jpeg.colorspace.boxes.JP2Box
getTypeString, getTypeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelDefinitionBox

public ChannelDefinitionBox(RandomAccessIO in,
                            int boxStart)
                     throws IOException,
                            ColorSpaceException
Construct a ChannelDefinitionBox from an input image.

Parameters:
in - RandomAccessIO jp2 image
boxStart - offset to the start of the box in the image
Throws:
IOException, - ColorSpaceException
IOException
ColorSpaceException
Method Detail

getNDefs

public int getNDefs()

getCn

public int getCn(int asoc)

getTyp

public int getTyp(int channel)

getAsoc

public int getAsoc(int channel)

toString

public String toString()
Return a suitable String representation of the class instance.

Overrides:
toString in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.