Class ContourEdgeIntensity<T extends ImageGray<T>>


  • public class ContourEdgeIntensity<T extends ImageGray<T>>
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ContourEdgeIntensity​(int contourSamples, int tangentSamples, double tangentStep, java.lang.Class<T> imageType)
      Configures how the edge intensity is computed
    • Constructor Detail

      • ContourEdgeIntensity

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

      • setImage

        public void setImage​(T image)
      • process

        public void process​(java.util.List<Point2D_I32> contour,
                            boolean isCCW)
      • getOutsideAverage

        public float getOutsideAverage()
      • getInsideAverage

        public float getInsideAverage()
      • getInputType

        public java.lang.Class<T> getInputType()