This canny edge detection function was based on GAGAN's original implemented. Computation speed was improved by about 100 times.
1. A different way of non-maxima suppression, completely in matrix format, avoiding if-then statements. This step is about 50 faster
2. A different way of connectivity analysis using imfill. This step is about 400 times faster.
----
Original description from GAGAN's original submission:
------------------------------------------------------
The Canny Edge detection method relies on various steps:
1. Convolution with Gaussian.
2. Estimation of Gradient Vector.
3. Non Maxima Suppression.
4. Thresholding and Connectivity Analysis.
Cite As
Deshan Yang (2024). Canny edge detection 2D (https://www.mathworks.com/matlabcentral/fileexchange/38924-canny-edge-detection-2d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Object Analysis >
Tags
Acknowledgements
Inspired by: Canny Edge Detection
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.