Change corners from image

Hello everyone!
I have this figure I'm working on, shown below, and I want to remove those upper and below left black corners or even change them from black to white, but I'm not finding any solution...
Also, since I'm dealing with different versions of this image (rotated, different sizes, I wanted to make this process as general as possible. Anyone has any idea?
Thanks!

2 comentarios

KSSV
KSSV el 22 de Jun. de 2021
Which black corners? The left one?
Iugo
Iugo el 22 de Jun. de 2021
@KSSV Yes, exactly!

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Jun. de 2021
img = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/661015/image.png');
imshow(img);
title('original RGB')
BW = imbinarize(rgb2gray(img));
imshow(BW)
title('binary');
mask = ~bwareafilt(~BW, 1);
imshow(mask)
title('mask with cleared boundary')

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 22 de Jun. de 2021

Comentada:

el 22 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by