Need help identifying shape on image
1 view (last 30 days)
Show older comments
Hello, I need a little help with identifying shape of the edges on multiple images like this:
The goal: Is to obtain a binary image highlighting only the edges something like this:
My gratitude to anyone who is smarter than my and can figure it out.
0 Comments
Answers (1)
Image Analyst
on 21 Jan 2022
Did you try edge() on the green channel?
[r, g, b] = imsplit(rgbImage);
edgeImage = edge(g);
imshow(edgeImage);
7 Comments
Image Analyst
on 23 Jan 2022
You are getting the edges of the dark regions. If you want the centerlines of the dark regions, instead of the edges of the bight/dark boundary, you should threshold, say with imbinarize(), and then use bwskel() instead.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!