text.png how to remove vertical lettering on a photo?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
betty
el 6 de En. de 2022
Comentada: betty
el 6 de En. de 2022
how to remove all of the vertical text in the image below? i'm trying the following code but it doesn't work
I=imread('text.png');
figure,imshow(I)
[r c]=ginput(4);
BW1=roipoly(I,r,c);
figure , imshow(BW1)
J = regionfill(I,r,c);
figure , imshow(J)
0 comentarios
Respuesta aceptada
Simon Chan
el 6 de En. de 2022
regionfill supports grayscale image and your input image is a black and white image only.
Therefore, regionfill gives an error.
In your case, just use:
I(BW1)=0
to give you the final image
7 comentarios
Simon Chan
el 6 de En. de 2022
The function was introduced in R2018b, so I think you have an eariler MATLAB version.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!