Documentation of 'boofcv.factory.shape.ConfigRefinePolygonCornersToImage' Java class
ConfigRefinePolygonCornersToImage
boofcv.factory.shape

Class ConfigRefinePolygonCornersToImage

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      double convergeTolPixels
      Convergence tolerance in pixels
      double cornerOffset
      How far away in pixels it will start sampling the line from a corner.
      int endPointDistance
      How many indexes away in the contour list should end points be.
      int lineSamples
      Number of times along the line it will be sampled
      double maxCornerChangePixel
      Maximum number of pixels a corner can be adjusted in a single iteration.
      int maxIterations
      Maximum number of iterations
      int sampleRadius
      Number of points tangent to the line in each direction it samples.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void checkValidity()
      Checks to see if the configuration is valid.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • endPointDistance

        public int endPointDistance
        How many indexes away in the contour list should end points be.
      • cornerOffset

        public double cornerOffset
        How far away in pixels it will start sampling the line from a corner. Corners can become highly aliased with ambiguous borders. Sides with smaller acute angles will be aliased to a greater distance and you might need to increase this number.
      • lineSamples

        public int lineSamples
        Number of times along the line it will be sampled
      • sampleRadius

        public int sampleRadius
        Number of points tangent to the line in each direction it samples. In total the number of samples along a line will be lineSamples*(2*sampleRadius+1)
      • maxIterations

        public int maxIterations
        Maximum number of iterations
      • convergeTolPixels

        public double convergeTolPixels
        Convergence tolerance in pixels
      • maxCornerChangePixel

        public double maxCornerChangePixel
        Maximum number of pixels a corner can be adjusted in a single iteration. This becomes important with very small shapes and can prevent divergence.
    • Constructor Detail

      • ConfigRefinePolygonCornersToImage

        public ConfigRefinePolygonCornersToImage()
    • Method Detail

      • checkValidity

        public void checkValidity()
        Description copied from interface: Configuration
        Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
        Specified by:
        checkValidity in interface Configuration
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.