inpainting (filling in missing parts of image)

Does anyone know how to fill in missing parts of an image? Ex: A portion of a photo is removed, and Matlab fills it in based on the surrounding points.

Réponses (2)

Image Analyst
Image Analyst le 14 Fév 2014

1 vote

There is a function called roifill() in the Image Processing Toolbox that can do inpainting.
Walter Roberson
Walter Roberson le 18 Avr 2011

0 votes

John D'Errico's MATLAB File Exchange Contribution inpaint_nans might be of benefit.

1 commentaire

John D'Errico
John D'Errico le 14 Fév 2014
Modifié(e) : John D'Errico le 14 Fév 2014
As Walter points out, inpaint_nans is the standard answer. However, depending on what was removed, any such tool can only fill in smoothly from the boundaries. Texture inpainting, or intelligent inpainting, wherein a missing eye is replaced, these are far beyond any such unintelligent tool.

Connectez-vous pour commenter.

Catégories

Question posée :

le 18 Avr 2011

Modifié(e) :

le 14 Fév 2014

Community Treasure Hunt

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

Start Hunting!

Translated by