Is there any way to do an operator on a specific region
Mostrar comentarios más antiguos
Is there any way to do an operator on a specific region ?? for example I want to do imfill just on the Lower left quadrant of the page... I search and find blockproce but I could not do this for Lower left quadrant of the page??? thanks
Respuesta aceptada
Más respuestas (2)
Anand
el 30 de Sept. de 2014
0 votos
Iain
el 30 de Sept. de 2014
A simple way is to simply chop it off:
% (Tune the numbers for what you need)
LowerLeftquad = my_image(74:end,1:30); % assuming a single frame of black & white.
LowerLeftquad = my_image(74:end,1:30,:); % assuming a single colour frame or many black & white.
Do what you want:
LowerLeftquad = imfill(LowerLeftquad);
And stick it back:
my_image(74:end,1:30) = LowerLeftquad;
Categorías
Más información sobre Blocked Images en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!