Need help identifying shape on image

1 view (last 30 days)
Oscar Loch
Oscar Loch on 21 Jan 2022
Commented: Image Analyst on 23 Jan 2022
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.

Answers (1)

Image Analyst
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
Oscar Loch
Oscar Loch on 23 Jan 2022
Edited: Oscar Loch on 23 Jan 2022
Exactly, maybe I explained my self wrong. But what I need is a white line as it appears on the original question goal , where it highlights the edge of the dark regions, I tought maybe using the areas where is black would be useful but as you can see on the original post there is also dark regions inside
Image Analyst
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.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!