public class InterpolationNearest extends javax.media.jai.Interpolation implements InterpolationNoData
Constructor and Description |
---|
InterpolationNearest(Range noDataRange,
boolean useROIAccessor,
double destinationNoData,
int dataType)
Simple interpolator object used for Nearest-Neighbor interpolation.
|
Modifier and Type | Method and Description |
---|---|
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(javax.media.jai.RasterAccessor src,
int bandIndex,
int dnumband,
int posx,
int posy,
Integer yROIValue,
javax.media.jai.RasterAccessor roiAccessor,
javax.media.jai.iterator.RandomIter roiIter,
boolean setNoData) |
int |
interpolateBinary(int xNextBitNo,
Number[] sourceData,
int sourceYOffset,
int sourceScanlineStride,
int[] coordinates,
int[] roiDataArray,
int roiYOffset,
int roiScanlineStride,
javax.media.jai.iterator.RandomIter roiIter) |
double |
interpolateH(double[] samples,
float arg1) |
float |
interpolateH(float[] samples,
float arg1) |
int |
interpolateH(int[] samples,
int arg1) |
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
|
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
public InterpolationNearest(Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType)
public int interpolateH(int[] samples, int arg1)
interpolateH
in class javax.media.jai.Interpolation
public float interpolateH(float[] samples, float arg1)
interpolateH
in class javax.media.jai.Interpolation
public double interpolateH(double[] samples, float arg1)
interpolateH
in class javax.media.jai.Interpolation
public void setROIBounds(Rectangle roiBounds)
public double getDestinationNoData()
InterpolationNoData
getDestinationNoData
in interface InterpolationNoData
public void setDestinationNoData(double destinationNoData)
InterpolationNoData
setDestinationNoData
in interface InterpolationNoData
public boolean getUseROIAccessor()
InterpolationNoData
getUseROIAccessor
in interface InterpolationNoData
public void setUseROIAccessor(boolean useROIAccessor)
InterpolationNoData
setUseROIAccessor
in interface InterpolationNoData
public Range getNoDataRange()
InterpolationNoData
getNoDataRange
in interface InterpolationNoData
public void setNoDataRange(Range noDataRange)
InterpolationNoData
setNoDataRange
in interface InterpolationNoData
public int getDataType()
public Number interpolate(javax.media.jai.RasterAccessor src, int bandIndex, int dnumband, int posx, int posy, Integer yROIValue, javax.media.jai.RasterAccessor roiAccessor, javax.media.jai.iterator.RandomIter roiIter, boolean setNoData)
public int interpolateBinary(int xNextBitNo, Number[] sourceData, int sourceYOffset, int sourceScanlineStride, int[] coordinates, int[] roiDataArray, int roiYOffset, int roiScanlineStride, javax.media.jai.iterator.RandomIter roiIter)
Copyright © 2006–2018 GeoSolutions. All rights reserved.