Class SampleIntensityScalePoint

java.lang.Object
boofcv.alg.feature.detect.selector.SampleIntensityScalePoint
All Implemented Interfaces:
SampleIntensity<ScalePoint>

public class SampleIntensityScalePoint extends Object implements SampleIntensity<ScalePoint>
Uses the intensity value in ScalePoint to return the intensity
  • Constructor Details

    • SampleIntensityScalePoint

      public SampleIntensityScalePoint()
  • Method Details

    • sample

      public float sample(@Nullable @Nullable GrayF32 intensity, int index, ScalePoint 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<ScalePoint>
      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(ScalePoint p)
      Description copied from interface: SampleIntensity
      Pixel coordinate x-axis
      Specified by:
      getX in interface SampleIntensity<ScalePoint>
    • getY

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