Class CannyEdgeDetection

  • All Implemented Interfaces:
    CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, TechnicalInformationHandler, ImageTransformer<BoofCVImageContainer>, FlowContextHandler, Serializable, Comparable

    public class CannyEdgeDetection
    extends AbstractBoofCVTransformer
    implements TechnicalInformationHandler
    Performs edge detection using the Canny Edge detection algorithm.
    For more information on the algorithm, see:
    WikiPedia. Canny edge detector.

     @misc{missing_id,
        author = {WikiPedia},
        title = {Canny edge detector},
        HTTP = {http://en.wikipedia.org/wiki/Canny_edge_detector}
     }
     


    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -blur-radius <int> (property: blurRadius)
        The radius to use for the gaussian blur.
        default: 2
        minimum: 1
     
    -type <BINARY_EDGES|TRACE_GRAPH|CONTOUR> (property: type)
        The type of output to generate.
        default: BINARY_EDGES
     
    -low-threshold <float> (property: lowThreshold)
        The low threshold to use.
        default: 0.1
     
    -connect-rule <FOUR|EIGHT> (property: connectRule)
        The connect rule to apply.
        default: EIGHT
     
    -high-threshold <float> (property: highThreshold)
        The high threshold to use.
        default: 0.3
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_BlurRadius

        protected int m_BlurRadius
        the blur radius.
      • m_LowThreshold

        protected float m_LowThreshold
        the low threshold to use.
      • m_HighThreshold

        protected float m_HighThreshold
        the high threshold to use.
      • m_ConnectRule

        protected boofcv.struct.ConnectRule m_ConnectRule
        the connect rule.
    • Constructor Detail

      • CannyEdgeDetection

        public CannyEdgeDetection()
    • Method Detail

      • getTechnicalInformation

        public TechnicalInformation getTechnicalInformation()
        Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
        Specified by:
        getTechnicalInformation in interface TechnicalInformationHandler
        Returns:
        the technical information about this class
      • setBlurRadius

        public void setBlurRadius​(int value)
        Sets the radius to use for the gaussian blur.
        Parameters:
        value - the radius
      • getBlurRadius

        public int getBlurRadius()
        Returns the radius to use for the gaussian blur.
        Returns:
        the radius
      • blurRadiusTipText

        public String blurRadiusTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • typeTipText

        public String typeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setLowThreshold

        public void setLowThreshold​(float value)
        Sets the low threshold to use.
        Parameters:
        value - the low threshold to use
      • getLowThreshold

        public float getLowThreshold()
        Returns the low threshold to use.
        Returns:
        the low threshold in use
      • lowThresholdTipText

        public String lowThresholdTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setHighThreshold

        public void setHighThreshold​(float value)
        Sets the high threshold to use.
        Parameters:
        value - the high threshold to use
      • getHighThreshold

        public float getHighThreshold()
        Returns the high threshold to use.
        Returns:
        the high threshold in use
      • highThresholdTipText

        public String highThresholdTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setConnectRule

        public void setConnectRule​(boofcv.struct.ConnectRule value)
        Sets the connect rule to apply.
        Parameters:
        value - the rule
      • getConnectRule

        public boofcv.struct.ConnectRule getConnectRule()
        Returns the connect rule to apply.
        Returns:
        the rule
      • connectRuleTipText

        public String connectRuleTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui