How can I fill the scratch after scratch detection?

2 次查看(过去 30 天)
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