I am trying to find the edges in these leaves. However due to shadow and other nuances normal edge detectors do not work very well.
I have tried a laplacian filter however it does not give back the results I hoped for. I would like to separate overlapping leaves as well though I do not need it to be 100% foolproof. The following code gives me a good idea of the edges however I still need to refine it more.
img=imread("path_to_image");h=fspecial("laplacian",[3000000 0],10.0);B=imfilter(img,h);C=imsubtract(img,B);imshow(B);figure;imshow(C);
Best Answer