How to remove unwanted object from an image?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Animesh Biswas
el 30 de En. de 2022
Comentada: Image Analyst
el 22 de Mzo. de 2022
In my attached image, I want to remove all the black dots on the right side of the image. I want to keep the object on the left side (long filament object.) How could I do without changing the threshold value? Changing threshold values I am actually loosing some pixel from the long object. Please help, I am new in Image analysis.
Thank you

0 comentarios
Respuesta aceptada
Image Analyst
el 30 de En. de 2022
Assuming you have a binary image
mask = bwareafilt(~mask, 1); % Take largest blob only.
6 comentarios
Image Analyst
el 22 de Mzo. de 2022
To whiten:
backgroundMask = imread('mask.png') > 128;
grayImage(backgroundMask) = 255; % Whiten
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!