ucar.jpeg.colorspace.boxes
Class ComponentMappingBox
java.lang.Object
ucar.jpeg.colorspace.boxes.JP2Box
ucar.jpeg.colorspace.boxes.ComponentMappingBox
public final class ComponentMappingBox
- 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
Method Summary |
int |
getCMP(int channel)
|
short |
getMTYP(int channel)
Return the channel type. |
int |
getNChannels()
|
short |
getPCOL(int channel)
Return the palette index for the channel. |
String |
toString()
Return a suitable String representation of the class instance. |
ComponentMappingBox
public ComponentMappingBox(RandomAccessIO in,
int boxStart)
throws IOException,
ColorSpaceException
- Construct a ComponentMappingBox from an input image.
- Parameters:
in
- RandomAccessIO jp2 imageboxStart
- offset to the start of the box in the image
- Throws:
IOException,
- ColorSpaceException
IOException
ColorSpaceException
getNChannels
public int getNChannels()
getCMP
public int getCMP(int channel)
getMTYP
public short getMTYP(int channel)
- Return the channel type.
getPCOL
public short getPCOL(int channel)
- Return the palette index for the 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.