Detection of dirt/artifacts to inpaint them

6 visualizaciones (últimos 30 días)
Fabian Ziegler
Fabian Ziegler el 12 de Abr. de 2021
Comentada: Fabian Ziegler el 19 de Abr. de 2021
Hello,
please see attached the following image.
i want to detect the small dirt pieces that can be found on most parts of the picture (small dark ones). I tried to filter them with treshholding from an grey image, but that doesnt allow me to only find the small obstacles (tried with binary based on brightness but other elements are too dark).
Any suggestions how to filter those small artifacts?

Respuesta aceptada

Image Analyst
Image Analyst el 16 de Abr. de 2021
Try imtophat() or imbothat() then threshold to find a mask. Then use regionfill() to smear in the surrounding region to "erase" the black specks.
  1 comentario
Fabian Ziegler
Fabian Ziegler el 19 de Abr. de 2021
Hello Sir,
thanks that helped me!
Appreciate it!
Best

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by