Documentation of 'boofcv.alg.shapes.polygon.RefinePolygonCornersToImage' Java class
RefinePolygonCornersToImage
boofcv.alg.shapes.polygon

Class RefinePolygonCornersToImage<T extends ImageGray>

  • All Implemented Interfaces:
    RefineBinaryPolygon<T>


    public class RefinePolygonCornersToImage<T extends ImageGray>
    extends java.lang.Object
    implements RefineBinaryPolygon<T>
    Given a contour and the index of corner points it will fit the corners individually to sub-pixel precision by locally fitting line segments near by each corner. The length of each line segment is specified by the number of pixels away it will traverse the contour. It makes sure that the end point does not go past the next corner.
    • Constructor Detail

      • RefinePolygonCornersToImage

        public RefinePolygonCornersToImage(int endPointDistance,
                                           double cornerOffset,
                                           int maxLineSamples,
                                           int sampleRadius,
                                           int maxIterations,
                                           double convergeTolPixels,
                                           double maxCornerChangePixels,
                                           java.lang.Class<T> imageType)
        Configures all parameters of the detector
        Parameters:
        endPointDistance - How many indexes away in the contour list should end points be.
        cornerOffset - pixels this close to the corner will be ignored. Try 2
        maxLineSamples - Number of points along the line which will be sampled. try 10
        sampleRadius - How far away from the line will it sample pixels. ≥ 1
        maxIterations - Maximum number of iterations it will perform. Try 10
        convergeTolPixels - When the corner changes less than this amount it will stop iterating. Try 1e-5
        maxCornerChangePixels - maximum change in corner location allowed from previous iteration in pixels. Try 2.0
        imageType - Type of input image.
      • RefinePolygonCornersToImage

        public RefinePolygonCornersToImage(java.lang.Class<T> imageType)
        Provides reasonable default values for all parameters that it can
        Parameters:
        imageType - Type of input image.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.