How to isolate the circle from the shaded area?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I would like to have only a shaded area from the picture. I want to remove the circle from the binary image. Any idea?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146996/image.png)
0 comentarios
Respuestas (1)
Matt J
el 1 de Feb. de 2015
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;
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!