![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/310268/image.png)
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![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/310235/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/310235/image.jpeg)
0 件のコメント
採用された回答
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/310268/image.png)
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!