public abstract class ImageDataReader extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bitsPerSampleLength |
protected TiffDirectory |
directory |
protected int |
height |
protected PhotometricInterpreter |
photometricInterpreter |
protected int |
predictor |
protected int |
samplesPerPixel |
protected int |
width |
Constructor and Description |
---|
ImageDataReader(TiffDirectory directory,
PhotometricInterpreter photometricInterpreter,
int[] bitsPerSample,
int predictor,
int samplesPerPixel,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
protected int[] |
applyPredictor(int[] samples) |
protected byte[] |
decompress(byte[] compressedInput,
int compression,
int expectedSize,
int tileWidth,
int tileHeight) |
protected boolean |
isHomogenous(int size)
Checks if all the bits per sample entries are the same size
|
abstract void |
readImageData(ImageBuilder imageBuilder) |
abstract BufferedImage |
readImageData(Rectangle subImage) |
protected void |
resetPredictor() |
protected final TiffDirectory directory
protected final PhotometricInterpreter photometricInterpreter
protected final int bitsPerSampleLength
protected final int predictor
protected final int samplesPerPixel
protected final int width
protected final int height
public ImageDataReader(TiffDirectory directory, PhotometricInterpreter photometricInterpreter, int[] bitsPerSample, int predictor, int samplesPerPixel, int width, int height)
public abstract void readImageData(ImageBuilder imageBuilder) throws ImageReadException, IOException
ImageReadException
IOException
public abstract BufferedImage readImageData(Rectangle subImage) throws ImageReadException, IOException
ImageReadException
IOException
protected boolean isHomogenous(int size)
size
- the size to checkprotected void resetPredictor()
protected int[] applyPredictor(int[] samples)
protected byte[] decompress(byte[] compressedInput, int compression, int expectedSize, int tileWidth, int tileHeight) throws ImageReadException, IOException
ImageReadException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.