Class Interpolation

java.lang.Object
qupath.opencv.tools.Interpolation

public class Interpolation extends Object
Methods to help with requesting interpolated values. Most commonly used with the indexer for an OpenCV Mat.
Author:
Pete Bankhead
  • Constructor Details

    • Interpolation

      public Interpolation()
  • Method Details

    • interp2D

      public static double interp2D(Indexer indexer, double i, double j)
      Request a value from an Indexer using bilinear interpolation. Values requested out of range will be replaced by the closest in-range value.
      Parameters:
      indexer -
      i - requested row
      j - requested column
      Returns:
      the interpolated value
    • interp3D

      public static double interp3D(Indexer indexer, double i, double j, double k)
      Request a value from an Indexer using trilinear interpolation. Values requested out of range will be replaced by the closest in-range value.
      Parameters:
      indexer -
      i -
      j -
      k -
      Returns:
      the interpolated value