Grayscale Canny Edge Detection
Version 1.0.0.0 (22 KB) by
Jered Wells
Performs Canny edge detection with grayscale magnitude and direction outputs
[MAG,THETA,DX,DY] = canny(IM) computes the magnitude and angle of local
intensity gradients in 2-D image IM. DX and DY are the independent X-
and Y-component gradients.
[MAG,THETA,DX,DY] = canny(IM,SIGMA) changes the standard deviation of
the Gaussian smoothing kernel. By default, SIGMA = SQRT(2).
Cite As
Jered Wells (2026). Grayscale Canny Edge Detection (https://www.mathworks.com/matlabcentral/fileexchange/52956-grayscale-canny-edge-detection), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Object Analysis >
Find more on Object Analysis in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
