How to erase black letters in an image

2 visualizaciones (últimos 30 días)
Joan Carreras Díaz
Joan Carreras Díaz el 8 de Feb. de 2024
Comentada: Joan Carreras Díaz el 8 de Feb. de 2024
I have an image like this:
Is it possible to erase these letters conserving the background?

Respuestas (1)

Akira Agata
Akira Agata el 8 de Feb. de 2024
How about the following?
I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1611496/image.jpeg');
Igray = rgb2gray(I);
BW = Igray < 10;
se = strel('disk', 10);
BW = imdilate(BW, se);
I2 = inpaintCoherent(I, BW);
imshow(I2)

Categorías

Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by