public class InterpolationBilinear extends Interpolation implements InterpolationNoData
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SUBSAMPLE_BITS
Default value for subsample bits
|
Constructor and Description |
---|
InterpolationBilinear(int subsampleBits,
Range noDataRange,
boolean useROIAccessor,
double destinationNoData,
int dataType)
Simple interpolator object used for Bilinear interpolation.
|
Modifier and Type | Method and Description |
---|---|
int |
computeValue(int s00,
int s01,
int s10,
int s11,
int w00,
int w01,
int w10,
int w11,
int xfrac,
int yfrac)
Calculates bilinear interpolation for byte, short/ushort, integer dataType
|
static Number |
computeValueDouble(double s00,
double s01,
double s10,
double s11,
boolean w00z,
boolean w01z,
boolean w10z,
boolean w11z,
double xfrac,
double yfrac,
int dataType,
double destinationNoData) |
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)
This method performs a bilinear interpolation of a pixel inside a not-Binary image.
|
int |
interpolateBinary(int xNextBitNo,
Number[] sourceData,
int xfrac,
int yfrac,
int sourceYOffset,
int sourceScanlineStride,
int[] coordinates,
int[] roiDataArray,
int roiYOffset,
int roiScanlineStride,
RandomIter roiIter)
This method performs a bilinear interpolation of a pixel inside a binary image.
|
double |
interpolateH(double[] arg0,
float xfrac) |
float |
interpolateH(float[] arg0,
float xfrac) |
int |
interpolateH(int[] arg0,
int xfrac) |
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 static final int DEFAULT_SUBSAMPLE_BITS
public InterpolationBilinear(int subsampleBits, Range noDataRange, boolean useROIAccessor, double destinationNoData, int dataType)
public int interpolateH(int[] arg0, int xfrac)
interpolateH
in class Interpolation
public float interpolateH(float[] arg0, float xfrac)
interpolateH
in class Interpolation
public double interpolateH(double[] arg0, float xfrac)
interpolateH
in class 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(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 int computeValue(int s00, int s01, int s10, int s11, int w00, int w01, int w10, int w11, int xfrac, int yfrac)
public static Number computeValueDouble(double s00, double s01, double s10, double s11, boolean w00z, boolean w01z, boolean w10z, boolean w11z, double xfrac, double yfrac, int dataType, double destinationNoData)
Copyright © 2006–2018 GeoSolutions. All rights reserved.