public class GenericRefinementRegion extends Object implements Region
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericRefinementRegion.Template |
| Constructor and Description |
|---|
GenericRefinementRegion() |
GenericRefinementRegion(SubInputStream subInputStream) |
GenericRefinementRegion(SubInputStream subInputStream,
SegmentHeader segmentHeader) |
| Modifier and Type | Method and Description |
|---|---|
Bitmap |
getRegionBitmap()
Decode using a template and arithmetic coding, as described in 6.3.5.6
|
RegionSegmentInformation |
getRegionInfo()
Simply returns the
RegionSegmentInformation. |
void |
init(SegmentHeader header,
SubInputStream sis)
Parse the stream and read information of header.
|
protected void |
setParameters(CX cx,
ArithmeticDecoder arithmeticDecoder,
short grTemplate,
int regionWidth,
int regionHeight,
Bitmap grReference,
int grReferenceDX,
int grReferenceDY,
boolean isTPGRon,
short[] grAtX,
short[] grAtY) |
public GenericRefinementRegion()
public GenericRefinementRegion(SubInputStream subInputStream)
public GenericRefinementRegion(SubInputStream subInputStream, SegmentHeader segmentHeader)
public Bitmap getRegionBitmap() throws IOException, IntegerMaxValueException, InvalidHeaderValueException
getRegionBitmap in interface RegionBitmap.IOException - if an underlying IO operation failsInvalidHeaderValueException - if a segment header value is invalidIntegerMaxValueException - if the maximum value limit of an integer is exceededpublic void init(SegmentHeader header, SubInputStream sis) throws IOException
SegmentDatainit in interface SegmentDataheader - - The segments' header (to make referred-to segments available in data part).sis - - Wrapped ImageInputStream into SubInputStream.IOException - if an underlying IO operation failsprotected void setParameters(CX cx, ArithmeticDecoder arithmeticDecoder, short grTemplate, int regionWidth, int regionHeight, Bitmap grReference, int grReferenceDX, int grReferenceDY, boolean isTPGRon, short[] grAtX, short[] grAtY)
public RegionSegmentInformation getRegionInfo()
RegionRegionSegmentInformation.getRegionInfo in interface RegionRegionSegmentInformation.Copyright © 2022 The Apache Software Foundation. All rights reserved.