Class InterpolationBicubic
Object
Interpolation
InterpolationTable
InterpolationBicubic
- All Implemented Interfaces:
Serializable,InterpolationNoData
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value for precision bitsFields inherited from class Interpolation
INTERP_BICUBIC, INTERP_BICUBIC_2, INTERP_BILINEAR, INTERP_NEAREST -
Constructor Summary
ConstructorsConstructorDescriptionInterpolationBicubic(int subsampleBits, Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType, boolean bicubic2Disabled, int precisionBits) Simple interpolator object used for Bicubic/Bicubic2 interpolation. -
Method Summary
Modifier and TypeMethodDescriptionstatic floatbicubic(float x, boolean bicubic2Disabled) Returns the bicubic polynomial value at a certain value of x.static intclampAndFixOvershootingByte(int s, byte destinationNoData) static intclampAndFixOvershootingUShort(int s, short destinationNoData) static float[]dataHelper(int subsampleBits, boolean bicubic2Disabled) intdoubleReturn the destinationNoData value associated to the Interpolation ObjectReturn NoData Range associated to the Interpolation object, if present.booleanGets the useROIAccessor value associated to the Interpolation Objectinterpolate(RasterAccessor src, int bandIndex, int dnumbands, int posx, int posy, Number[] fracValues, Integer yValueROI, RasterAccessor roi, RandomIter roiIter, boolean setNoData) intinterpolateBinary(int xNextBitNo, Number[] sourceData, int xfrac, int yfrac, int sourceYOffset, int sourceScanlineStride, int[] coordinates, int[] roiDataArray, int roiYOffset, int roiScanlineStride, RandomIter roiIter) booleanvoidsetDestinationNoData(double destinationNoData) Sets the destinationNoData value associated to the Interpolation ObjectvoidsetNoDataRange(Range noDataRange) Set NoData Range associated to the Interpolation object.voidsetROIBounds(Rectangle roiBounds) voidsetUseROIAccessor(boolean useROIAccessor) Sets the useROIAccessor value associated to the Interpolation ObjectMethods inherited from class InterpolationTable
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, interpolateVMethods inherited from class Interpolation
getBottomPadding, getHeight, getInstance, getLeftPadding, getRightPadding, getSubsampleBitsH, getSubsampleBitsV, getTopPadding, getWidth, interpolate, interpolate, interpolate, isSeparable
-
Field Details
-
PRECISION_BITS
public static final int PRECISION_BITSDefault value for precision bits- See Also:
-
-
Constructor Details
-
InterpolationBicubic
public InterpolationBicubic(int subsampleBits, Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType, boolean bicubic2Disabled, int precisionBits) Simple interpolator object used for Bicubic/Bicubic2 interpolation. On construction it is possible to set a range for no data values that will be considered in the interpolation method.
-
-
Method Details
-
setROIBounds
-
getDestinationNoData
public double getDestinationNoData()Description copied from interface:InterpolationNoDataReturn the destinationNoData value associated to the Interpolation Object- Specified by:
getDestinationNoDatain interfaceInterpolationNoData- Returns:
- destinationNoData
-
setDestinationNoData
public void setDestinationNoData(double destinationNoData) Description copied from interface:InterpolationNoDataSets the destinationNoData value associated to the Interpolation Object- Specified by:
setDestinationNoDatain interfaceInterpolationNoData
-
getNoDataRange
Description copied from interface:InterpolationNoDataReturn NoData Range associated to the Interpolation object, if present.- Specified by:
getNoDataRangein interfaceInterpolationNoData- Returns:
- NoData Range
-
setNoDataRange
Description copied from interface:InterpolationNoDataSet NoData Range associated to the Interpolation object.- Specified by:
setNoDataRangein interfaceInterpolationNoData
-
getUseROIAccessor
public boolean getUseROIAccessor()Description copied from interface:InterpolationNoDataGets the useROIAccessor value associated to the Interpolation Object- Specified by:
getUseROIAccessorin interfaceInterpolationNoData- Returns:
- useROIAccessor
-
setUseROIAccessor
public void setUseROIAccessor(boolean useROIAccessor) Description copied from interface:InterpolationNoDataSets the useROIAccessor value associated to the Interpolation Object- Specified by:
setUseROIAccessorin interfaceInterpolationNoData
-
isBicubic2
public boolean isBicubic2() -
getDataType
public int getDataType() -
dataHelper
public static float[] dataHelper(int subsampleBits, boolean bicubic2Disabled) -
bicubic
public static float bicubic(float x, boolean bicubic2Disabled) Returns the bicubic polynomial value at a certain value of x. -
interpolate
-
interpolateBinary
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) -
clampAndFixOvershootingByte
public static int clampAndFixOvershootingByte(int s, byte destinationNoData) -
clampAndFixOvershootingUShort
public static int clampAndFixOvershootingUShort(int s, short destinationNoData)
-