public class J2KReadState extends Object
Modifier and Type | Field and Description |
---|---|
private int[] |
bandOffsets |
private BitstreamReaderAgent |
breader |
private byte[] |
bytebuf |
private int[] |
channelMap |
private ColorModel |
colorModel |
private ImgDataConverter |
converter |
private ImgDataConverter |
converter2 |
private DataBlkInt[] |
dataBlocks |
private DecoderSpecs |
decSpec |
private Dequantizer |
deq |
private BufferedImage |
destImage |
private int[] |
destinationBands |
private Rectangle |
destinationRegion |
private EntropyDecoder |
entdec |
private FileFormatReader |
ff |
private int[] |
fracBits |
private HeaderDecoder |
hd |
private int |
height |
private HeaderInfo |
hi |
private InvCompTransf |
ictransf |
private ImageInputStream |
iis
The input stream we read from
|
private RandomAccessIO |
in |
private InverseWT |
invWT |
private boolean |
isSigned |
private J2KImageReadParamJava |
j2krparam |
private int[] |
levelShift |
private int |
maxDepth |
private int[] |
maxValues |
private J2KMetadata |
metadata |
private int[] |
minValues |
private int |
nComp |
private boolean |
noTransform |
private int[] |
pixbuf |
private J2KImageReader |
reader
Cache the
J2KImageReader which creates this object. |
private int |
resolution
The resolution level requested.
|
private ROIDeScaler |
roids |
private SampleModel |
sampleModel |
private int |
scaleX
Source to destination transform
|
private int |
scaleY
Source to destination transform
|
private int[] |
sourceBands |
private Point |
sourceOrigin |
private int |
stepX
The subsampling step sizes.
|
private int |
stepY
The subsampling step sizes.
|
private int |
tileHeight |
private int |
tileStepX
Tile step sizes.
|
private int |
tileStepY
Tile step sizes.
|
private int |
tileWidth |
private int |
tileXOffset
Tile grid offsets of the source, also used for destination.
|
private int |
tileYOffset
Tile grid offsets of the source, also used for destination.
|
private int |
width |
private int |
xOffset
Source to destination transform
|
private int |
yOffset
Source to destination transform
|
Constructor and Description |
---|
J2KReadState(ImageInputStream iis,
J2KImageReadParamJava param,
J2KImageReader reader)
Constructs
J2KReadState . |
J2KReadState(ImageInputStream iis,
J2KImageReadParamJava param,
J2KMetadata metadata,
J2KImageReader reader)
Constructs
J2KReadState . |
Modifier and Type | Method and Description |
---|---|
private int |
clip(int value,
int min,
int max) |
private void |
clipDestination(Rectangle dest) |
ColorModel |
getColorModel() |
Rectangle |
getDestinationRegion() |
HeaderDecoder |
getHeader() |
int |
getHeight() |
ImageTypeSpecifier |
getImageType() |
SampleModel |
getSampleModel() |
Raster |
getTile(int tileX,
int tileY,
WritableRaster raster) |
(package private) Rectangle |
getTile0Rect()
Returns the bounding rectangle of the upper left tile at
the current resolution level.
|
int |
getWidth() |
private void |
initializeRead(int imageIndex,
J2KImageReadParamJava param,
J2KMetadata metadata) |
Raster |
readAsRaster() |
BufferedImage |
readBufferedImage() |
private Raster |
readSubsampledRaster(WritableRaster raster) |
private ImageInputStream iis
private FileFormatReader ff
private HeaderInfo hi
private HeaderDecoder hd
private RandomAccessIO in
private BitstreamReaderAgent breader
private EntropyDecoder entdec
private ROIDeScaler roids
private Dequantizer deq
private InverseWT invWT
private InvCompTransf ictransf
private ImgDataConverter converter
private ImgDataConverter converter2
private DecoderSpecs decSpec
private J2KImageReadParamJava j2krparam
private int[] destinationBands
private int[] sourceBands
private int[] levelShift
private int[] minValues
private int[] maxValues
private int[] fracBits
private DataBlkInt[] dataBlocks
private int[] bandOffsets
private int maxDepth
private boolean isSigned
private ColorModel colorModel
private SampleModel sampleModel
private int nComp
private int tileWidth
private int tileHeight
private int scaleX
private int scaleY
private int xOffset
private int yOffset
private Rectangle destinationRegion
private Point sourceOrigin
private int tileXOffset
private int tileYOffset
private int width
private int height
private int[] pixbuf
private byte[] bytebuf
private int[] channelMap
private boolean noTransform
private int resolution
private int stepX
private int stepY
private int tileStepX
private int tileStepY
private J2KMetadata metadata
private BufferedImage destImage
private J2KImageReader reader
J2KImageReader
which creates this object. This
variable is used to monitor the abortion.public J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KMetadata metadata, J2KImageReader reader)
J2KReadState
.iis
- The input stream.param
- The reading parameters.metadata
- The J2KMetadata
to cache the metadata read
from the input stream.reader
- The J2KImageReader
which holds this state.
It is necessary for processing abortion.IllegalArgumentException
- If the provided iis
,
param
or metadata
is null
.public J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KImageReader reader)
J2KReadState
.iis
- The input stream.param
- The reading parameters.reader
- The J2KImageReader
which holds this state.
It is necessary for processing abortion.IllegalArgumentException
- If the provided iis
,
or param
is null
.public int getWidth() throws IOException
IOException
public int getHeight() throws IOException
IOException
public HeaderDecoder getHeader()
public Raster getTile(int tileX, int tileY, WritableRaster raster) throws IOException
IOException
public Rectangle getDestinationRegion()
public BufferedImage readBufferedImage() throws IOException
IOException
public Raster readAsRaster() throws IOException
IOException
private void initializeRead(int imageIndex, J2KImageReadParamJava param, J2KMetadata metadata)
private Raster readSubsampledRaster(WritableRaster raster) throws IOException
IOException
public ImageTypeSpecifier getImageType() throws IOException
IOException
public SampleModel getSampleModel()
public ColorModel getColorModel()
Rectangle getTile0Rect()
private int clip(int value, int min, int max)
private void clipDestination(Rectangle dest)
Copyright © 2015 Open Microscopy Environment