Finding outer and inner edge of an ear image
Mostra commenti meno recenti
I am using MATLAB 2013a. I used lot of edge detector techniques to find out both the edges, but I am able to find only outer edge.If anyone can help me with the code to find both the edges that will be great help for my work. The final image after finding edges resembles the attached image. Reply as soon as possible. Thank you.
1 Commento
Sukhada Vengurlekar
il 19 Mar 2016
Modificato: Sukhada Vengurlekar
il 19 Mar 2016
Risposta accettata
Più risposte (3)
Ahmet Cecen
il 8 Mar 2016
0 voti
A cheap trick would be to use bwconncomp on your edge image, and then use a for loop to only keeps the ones that contain a pixel with an element that has the maximum or minimum observed coordinate of edge pixels possible. That will give you the outermost shell in all cases except in the case where your outer edge happens to be slightly connected from a point to your inner edge.
1 Commento
Sukhada Vengurlekar
il 9 Mar 2016
Image Analyst
il 9 Mar 2016
You can fill it and call bwperim():
binaryImage = imfill(edgeImage, 'holes');
outerPerimeter = bwperim(binaryImage);
Sukhada Vengurlekar
il 9 Mar 2016
0 voti
5 Commenti
Image Analyst
il 9 Mar 2016
That's because this contour is not a closed contour. It's open at the sides of the image, unlike the image you originally posted. So it can't be filled.
Sukhada Vengurlekar
il 19 Mar 2016
marjan mome
il 21 Apr 2016
Modificato: marjan mome
il 21 Apr 2016
hi Thank for these codes .it is use full for me.but i want to find location of line cut outer edge .like this image.please help me .Reply as soon as possible. Thank you.
daniel Rodrigues
il 21 Lug 2017
I'm doing a job and I'm having the same problem, did you solve it?
Image Analyst
il 21 Lug 2017
Why are you working on this? Who wants to know about ears? Is it some kind of biometric application? What's the "use case"? Just curious.
What kind of image are you starting with? You forgot to post it.
Categorie
Scopri di più su Object Analysis in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




