Class InterpolationNearest
Object
Interpolation
InterpolationNearest
- All Implemented Interfaces:
Serializable,InterpolationNoData
- See Also:
-
Field Summary
Fields inherited from class Interpolation
INTERP_BICUBIC, INTERP_BICUBIC_2, INTERP_BILINEAR, INTERP_NEAREST -
Constructor Summary
ConstructorsConstructorDescriptionInterpolationNearest(Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType) Simple interpolator object used for Nearest-Neighbor interpolation. -
Method Summary
Modifier and TypeMethodDescriptionintdoubleReturn 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 dnumband, int posx, int posy, Integer yROIValue, RasterAccessor roiAccessor, RandomIter roiIter, boolean setNoData) intinterpolateBinary(int xNextBitNo, Number[] sourceData, int sourceYOffset, int sourceScanlineStride, int[] coordinates, int[] roiDataArray, int roiYOffset, int roiScanlineStride, RandomIter roiIter) doubleinterpolateH(double[] samples, float arg1) floatinterpolateH(float[] samples, float arg1) intinterpolateH(int[] samples, int arg1) voidsetDestinationNoData(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 Interpolation
getBottomPadding, getHeight, getInstance, getLeftPadding, getRightPadding, getSubsampleBitsH, getSubsampleBitsV, getTopPadding, getWidth, interpolate, interpolate, interpolate, interpolate, interpolate, interpolate, interpolate, interpolate, interpolate, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateH, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, interpolateV, isSeparable
-
Constructor Details
-
InterpolationNearest
public InterpolationNearest(Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType) Simple interpolator object used for Nearest-Neighbor interpolation. On construction it is possible to set a range for no data values that will be considered in the interpolation method.
-
-
Method Details
-
interpolateH
public int interpolateH(int[] samples, int arg1) - Specified by:
interpolateHin classInterpolation
-
interpolateH
public float interpolateH(float[] samples, float arg1) - Specified by:
interpolateHin classInterpolation
-
interpolateH
public double interpolateH(double[] samples, float arg1) - Specified by:
interpolateHin classInterpolation
-
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
-
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
-
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
-
getDataType
public int getDataType() -
interpolate
-
interpolateBinary
public int interpolateBinary(int xNextBitNo, Number[] sourceData, int sourceYOffset, int sourceScanlineStride, int[] coordinates, int[] roiDataArray, int roiYOffset, int roiScanlineStride, RandomIter roiIter)
-