A Matlab code is written to extract the shape of leaves using Sobel, Canny, Prewitt and Roberts filters. Change the threshold values of ech to get better results, as I have used the ones given in the paper.
How to run ??
1. Place the folder in Matlab path, add all the folder and subfolders to the path.
2. Run LeafShapeExtract.m
3. Select an image from the Leaf Dataset
4. Observe results on command window
The code is based on the paer below, please cite and give credit to the authors:
 Amlekar, M. M., et al. "Leaf shape extraction for plant classification." Pervasive Computing (ICPC), 2015 International Conference on. IEEE, 2015.
Suggestions and comments are always welcome,
Thanks in advance,
Manu BN (2021). Leaf Shape Extraction (https://www.mathworks.com/matlabcentral/fileexchange/55110-leaf-shape-extraction), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!