public class JPEG2000MetadataParser
extends java.lang.Object
Constructor and Description |
---|
JPEG2000MetadataParser(RandomAccessInputStream in)
Constructs a new JPEG2000MetadataParser.
|
JPEG2000MetadataParser(RandomAccessInputStream in,
long maximumReadOffset)
Constructs a new JPEG2000MetadataParser.
|
Modifier and Type | Method and Description |
---|---|
long |
getCodestreamOffset()
Retrieves the offset to the first contiguous codestream.
|
java.lang.Integer |
getCodestreamPixelType()
Returns the pixel type as specified in the header.
|
java.lang.Short |
getCodestreamSizeC()
Returns the number of channels the image has as specified in the header.
|
java.lang.Integer |
getCodestreamSizeX()
Returns the width of the image as specified in the header.
|
java.lang.Integer |
getCodestreamSizeY()
Returns the height of the image as specified in the header.
|
java.util.ArrayList<java.lang.String> |
getComments()
Retrieves the list of comments stored in the file.
|
java.lang.Integer |
getHeaderPixelType()
Returns the pixel type as specified in the header.
|
java.lang.Short |
getHeaderSizeC()
Returns the number of channels the image has as specified in the header.
|
java.lang.Integer |
getHeaderSizeX()
Returns the width of the image as specified in the header.
|
java.lang.Integer |
getHeaderSizeY()
Returns the height of the image as specified in the header.
|
int[][] |
getLookupTable()
Returns the color lookup table stored in the file, or null if a lookup
table is not present.
|
java.lang.Integer |
getResolutionLevels()
Returns the number of resolution levels the file JPEG 2000 data has.
|
boolean |
isRawCodestream()
Whether or not the codestream is raw and not JP2 boxed.
|
public JPEG2000MetadataParser(RandomAccessInputStream in) throws java.io.IOException
in
- Stream to parse JPEG 2000 metadata from.java.io.IOException
- Thrown if there is an error reading from the file.public JPEG2000MetadataParser(RandomAccessInputStream in, long maximumReadOffset) throws java.io.IOException
in
- Stream to parse JPEG 2000 metadata from.maximumReadOffset
- Maximum read offset within the stream when
parsing.java.io.IOException
- Thrown if there is an error reading from the file.public long getCodestreamOffset()
public java.util.ArrayList<java.lang.String> getComments()
public boolean isRawCodestream()
true
if the codestream is raw and false
otherwise.public java.lang.Integer getResolutionLevels()
null
if the
number cannot be parsed.public java.lang.Integer getHeaderSizeX()
public java.lang.Integer getHeaderSizeY()
public java.lang.Short getHeaderSizeC()
public java.lang.Integer getHeaderPixelType()
public java.lang.Integer getCodestreamSizeX()
public java.lang.Integer getCodestreamSizeY()
public java.lang.Short getCodestreamSizeC()
public java.lang.Integer getCodestreamPixelType()
public int[][] getLookupTable()
Copyright © 2014 Open Microscopy Environment