public class InterpolationBicubic extends InterpolationTable implements InterpolationNoData
Modifier and Type | Field and Description |
---|---|
static int |
PRECISION_BITS
Default value for precision bits
|
Constructor and Description |
---|
InterpolationBicubic(int subsampleBits,
Range noDataRange,
boolean useROIAccessor,
double destinationNoData,
int dataType,
boolean bicubic2Disabled,
int precisionBits)
Simple interpolator object used for Bicubic/Bicubic2 interpolation.
|
Modifier and Type | Method and Description |
---|---|
static float |
bicubic(float x,
boolean bicubic2Disabled)
Returns the bicubic polynomial value at a certain value of x.
|
static int |
clampAndFixOvershootingByte(int s,
byte destinationNoData) |
static int |
clampAndFixOvershootingUShort(int s,
short destinationNoData) |
static float[] |
dataHelper(int subsampleBits,
boolean bicubic2Disabled) |
int |
getDataType() |
double |
getDestinationNoData()
Return the destinationNoData value associated to the Interpolation Object
|
Range |
getNoDataRange()
Return NoData Range associated to the Interpolation object, if present.
|
boolean |
getUseROIAccessor()
Gets the useROIAccessor value associated to the Interpolation Object
|
Number |
interpolate(RasterAccessor src,
int bandIndex,
int dnumbands,
int posx,
int posy,
Number[] fracValues,
Integer yValueROI,
RasterAccessor roi,
RandomIter roiIter,
boolean setNoData) |
int |
interpolateBinary(int xNextBitNo,
Number[] sourceData,
int xfrac,
int yfrac,
int sourceYOffset,
int sourceScanlineStride,
int[] coordinates,
int[] roiDataArray,
int roiYOffset,
int roiScanlineStride,
RandomIter roiIter) |
boolean |
isBicubic2() |
void |
setDestinationNoData(double destinationNoData)
Sets the destinationNoData value associated to the Interpolation Object
|
void |
setNoDataRange(Range noDataRange)
Set NoData Range associated to the Interpolation object.
|
void |
setROIBounds(Rectangle roiBounds) |
void |
setUseROIAccessor(boolean useROIAccessor)
Sets the useROIAccessor value associated to the Interpolation Object
|
getHorizontalTableData, getHorizontalTableDataDouble, getHorizontalTableDataFloat, getPrecisionBits, getVerticalTableData, getVerticalTableDataDouble, getVerticalTableDataFloat, interpolate, interpolate, interpolate, interpolate, interpolate, interpolate, interpolateF, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV
public static final int PRECISION_BITS
public InterpolationBicubic(int subsampleBits, Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType, boolean bicubic2Disabled, int precisionBits)
public void setROIBounds(Rectangle roiBounds)
public double getDestinationNoData()
InterpolationNoData
getDestinationNoData
in interface InterpolationNoData
public void setDestinationNoData(double destinationNoData)
InterpolationNoData
setDestinationNoData
in interface InterpolationNoData
public Range getNoDataRange()
InterpolationNoData
getNoDataRange
in interface InterpolationNoData
public void setNoDataRange(Range noDataRange)
InterpolationNoData
setNoDataRange
in interface InterpolationNoData
public boolean getUseROIAccessor()
InterpolationNoData
getUseROIAccessor
in interface InterpolationNoData
public void setUseROIAccessor(boolean useROIAccessor)
InterpolationNoData
setUseROIAccessor
in interface InterpolationNoData
public boolean isBicubic2()
public int getDataType()
public static float[] dataHelper(int subsampleBits, boolean bicubic2Disabled)
public static float bicubic(float x, boolean bicubic2Disabled)
public Number interpolate(RasterAccessor src, int bandIndex, int dnumbands, int posx, int posy, Number[] fracValues, Integer yValueROI, RasterAccessor roi, RandomIter roiIter, boolean setNoData)
public int interpolateBinary(int xNextBitNo, Number[] sourceData, int xfrac, int yfrac, int sourceYOffset, int sourceScanlineStride, int[] coordinates, int[] roiDataArray, int roiYOffset, int roiScanlineStride, RandomIter roiIter)
public static int clampAndFixOvershootingByte(int s, byte destinationNoData)
public static int clampAndFixOvershootingUShort(int s, short destinationNoData)
Copyright © 2006–2018 GeoSolutions. All rights reserved.