How can I fill the scratch after scratch detection?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yuelei Li
el 10 de Abr. de 2021
Comentada: Yuelei Li
el 10 de Abr. de 2021
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?
0 comentarios
Respuesta aceptada
DGM
el 10 de Abr. de 2021
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+)
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!