This code converts a BW image to an Edge Detected image in C with MEX. I put this together for a school project and I couldn't find any good examples of MEX with image processing. One note the code is currently hard coded to handle only UINT8, however it should be trivial to convert that data type. Enjoy.
Cite As
Anthony Gabrielson (2026). Edge Dection (https://uk.mathworks.com/matlabcentral/fileexchange/9108-edge-dection), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP3
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
Acknowledgements
Inspired: edge detection using 2X2 matrix
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Code cleanup and a pointer math error. |
