Packages

p

canny

package canny

Type Members

  1. class CannyEdgeDetector extends AnyRef

    This software has been released into the public domain. Please read the notes in this source file for additional information.

    This software has been released into the public domain. Please read the notes in this source file for additional information.

    This class provides a configurable implementation of the Canny edge detection algorithm. This classic algorithm has a number of shortcomings, but remains an effective tool in many scenarios. This class is designed for single threaded use only.

    Sample usage:

    
    //create the detector
    CannyEdgeDetector detector = new CannyEdgeDetector();
    //adjust its parameters as desired
    detector.setLowThreshold(0.5f);
    detector.setHighThreshold(1f);
    //apply it to an image
    detector.setSourceImage(frame);
    detector.process();
    BufferedImage edges = detector.getEdgesImage();
    
    

    For a more complete understanding of this edge detector's parameters consult an explanation of the algorithm.

Ungrouped