How to isolate the circle from the shaded area?
24 ビュー (過去 30 日間)
古いコメントを表示
I would like to have only a shaded area from the picture. I want to remove the circle from the binary image. Any idea?

0 件のコメント
回答 (1 件)
Matt J
2015 年 2 月 1 日
How about
A=imread('http://www.mathworks.com/matlabcentral/answers/uploaded_files/24735/D1.png');
A=rgb2gray(A);
outer=~imfill(A,'holes');
outerd=imdilate(outer,ones(5));
newImage = A&~outerd;
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!