How can I fill the scratch after scratch detection?

조회 수: 2 (최근 30일)
Yuelei Li
Yuelei Li 2021년 4월 10일
댓글: Yuelei Li 2021년 4월 10일
Hi, I'm struggling on how to fill the scratch after scratch detection. The mask of scratch detection is shown below.
After this, I'm trying to restore(remove) these scratches with interpolated value from neighbors, is there any way that I can interpolate the value?

채택된 답변

DGM
DGM 2021년 4월 10일
Without knowing the original image content, you can probably do inpainting with regionfill()
If you have an older version, you can use inpaint_nans from the FEX:
Depending on the complexity of the image and the relative size of the defects, a more complex approach may work (R2019b+)
  댓글 수: 1
Yuelei Li
Yuelei Li 2021년 4월 10일
Hi, thanks for your reply, I tried the regionfill but it's not working well, I will definitelytry inpaint conherant!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by