Class InterpolationBicubic

Object
Interpolation
InterpolationTable
InterpolationBicubic
All Implemented Interfaces:
Serializable, InterpolationNoData

public class InterpolationBicubic extends InterpolationTable implements InterpolationNoData
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default value for precision bits

    Fields inherited from class Interpolation

    INTERP_BICUBIC, INTERP_BICUBIC_2, INTERP_BILINEAR, INTERP_NEAREST
  • Constructor Summary

    Constructors
    Constructor
    Description
    InterpolationBicubic(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 Type
    Method
    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
     
    double
    Return the destinationNoData value associated to the Interpolation Object
    Return NoData Range associated to the Interpolation object, if present.
    boolean
    Gets the useROIAccessor value associated to the Interpolation Object
    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
     
    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
     
    void
    setUseROIAccessor(boolean useROIAccessor)
    Sets the useROIAccessor value associated to the Interpolation Object

    Methods 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, interpolateV

    Methods inherited from class Interpolation

    getBottomPadding, getHeight, getInstance, getLeftPadding, getRightPadding, getSubsampleBitsH, getSubsampleBitsV, getTopPadding, getWidth, interpolate, interpolate, interpolate, isSeparable

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PRECISION_BITS

      public static final int PRECISION_BITS
      Default 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

      public void setROIBounds(Rectangle roiBounds)
    • getDestinationNoData

      public double getDestinationNoData()
      Description copied from interface: InterpolationNoData
      Return the destinationNoData value associated to the Interpolation Object
      Specified by:
      getDestinationNoData in interface InterpolationNoData
      Returns:
      destinationNoData
    • setDestinationNoData

      public void setDestinationNoData(double destinationNoData)
      Description copied from interface: InterpolationNoData
      Sets the destinationNoData value associated to the Interpolation Object
      Specified by:
      setDestinationNoData in interface InterpolationNoData
    • getNoDataRange

      public Range getNoDataRange()
      Description copied from interface: InterpolationNoData
      Return NoData Range associated to the Interpolation object, if present.
      Specified by:
      getNoDataRange in interface InterpolationNoData
      Returns:
      NoData Range
    • setNoDataRange

      public void setNoDataRange(Range noDataRange)
      Description copied from interface: InterpolationNoData
      Set NoData Range associated to the Interpolation object.
      Specified by:
      setNoDataRange in interface InterpolationNoData
    • getUseROIAccessor

      public boolean getUseROIAccessor()
      Description copied from interface: InterpolationNoData
      Gets the useROIAccessor value associated to the Interpolation Object
      Specified by:
      getUseROIAccessor in interface InterpolationNoData
      Returns:
      useROIAccessor
    • setUseROIAccessor

      public void setUseROIAccessor(boolean useROIAccessor)
      Description copied from interface: InterpolationNoData
      Sets the useROIAccessor value associated to the Interpolation Object
      Specified by:
      setUseROIAccessor in interface InterpolationNoData
    • 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

      public Number interpolate(RasterAccessor src, int bandIndex, int dnumbands, int posx, int posy, Number[] fracValues, Integer yValueROI, RasterAccessor roi, RandomIter roiIter, boolean setNoData)
    • 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)