Class SampleIntensityImage.F32

java.lang.Object
boofcv.alg.feature.detect.selector.SampleIntensityImage.F32
All Implemented Interfaces:
SampleIntensity<Point2D_F32>
Enclosing class:
SampleIntensityImage

public static class SampleIntensityImage.F32
extends Object
implements SampleIntensity<Point2D_F32>
Implementation for Point2D_F32
  • Constructor Details

    • F32

      public F32()
  • Method Details

    • sample

      public float sample​(@Nullable @Nullable GrayF32 intensity, int index, Point2D_F32 p)
      Description copied from interface: SampleIntensity
      Returns the intensity. If the sampling method does not require the intensity image then it may be null.
      Specified by:
      sample in interface SampleIntensity<Point2D_F32>
      Parameters:
      intensity - Image with intensity information. May be null if sampling method does not use it.
      index - Index of the point in the list
      p - Coordinate being sampled. Must be inside the image
      Returns:
      The intensity at the sample point
    • getX

      public int getX​(Point2D_F32 p)
      Description copied from interface: SampleIntensity
      Pixel coordinate x-axis
      Specified by:
      getX in interface SampleIntensity<Point2D_F32>
    • getY

      public int getY​(Point2D_F32 p)
      Description copied from interface: SampleIntensity
      Pixel coordinate y-axis
      Specified by:
      getY in interface SampleIntensity<Point2D_F32>