Class ContourEdgeIntensity<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.shapes.polygon.ContourEdgeIntensity<T>

public class ContourEdgeIntensity<T extends ImageGray<T>>
extends Object
Computes the average value of points sampled outside and inside the contour at regular intervals. At each sample location along the contour the local slope is computed using another contour point. This is then used to compute the tangent. Then points inside and outside along the tangent are sampled using bilinear interpolation. The value of these points are summed up and the average computed.
  • Constructor Details

    • ContourEdgeIntensity

      public ContourEdgeIntensity​(int contourSamples, int tangentSamples, double tangentStep, Class<T> imageType)
      Configures how the edge intensity is computed
      Parameters:
      contourSamples - Sample of times it will sample along the image contour.
  • Method Details

    • setImage

      public void setImage​(T image)
    • process

      public void process​(List<Point2D_I32> contour, boolean isCCW)
    • getInputType

      public Class<T> getInputType()