How can I outline the inside border of this ring? ie. highlight the inner circle

1 次查看(过去 30 天)
I am trying to highlight the inner border of this ring in the image attached. Is this possible?
Thank you for your help

采纳的回答

Star Strider
Star Strider 2020-6-5
Try this:
I = imread('Love Matlab image.jpeg');
IBW = im2bw(I);
Bnd = bwboundaries(IBW);
figure
imshow(IBW)
hold on
plot(Bnd{4}(:,2), Bnd{4}(:,1), '-r', 'LineWidth',2)
hold off
producing:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by