Detection of dirt/artifacts to inpaint them

조회 수: 6 (최근 30일)
Fabian Ziegler
Fabian Ziegler 2021년 4월 12일
댓글: Fabian Ziegler 2021년 4월 19일
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?

채택된 답변

Image Analyst
Image Analyst 2021년 4월 16일
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
Fabian Ziegler
Fabian Ziegler 2021년 4월 19일
Hello Sir,
thanks that helped me!
Appreciate it!
Best

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by