Interface SampleIntensity<Point>

All Known Implementing Classes:
SampleIntensityImage.F32, SampleIntensityImage.F64, SampleIntensityImage.I16, SampleIntensityScalePoint

public interface SampleIntensity<Point>
Samples the intensity at the specified point.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Pixel coordinate x-axis
    int
    Pixel coordinate y-axis
    float
    sample(@Nullable GrayF32 intensity, int index, Point p)
    Returns the intensity.
  • Method Details

    • sample

      float sample(@Nullable @Nullable GrayF32 intensity, int index, Point p)
      Returns the intensity. If the sampling method does not require the intensity image then it may be null.
      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

      int getX(Point p)
      Pixel coordinate x-axis
    • getY

      int getY(Point p)
      Pixel coordinate y-axis