O'Reilly logo

Learning Image Processing with OpenCV by Gloria Bueno García, Oscar Deniz Suarez, José Luis Espinosa Aranda, Jesus Salido Tercero, Ismael Serrano Gracia, Noelia Vállez Enano

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inpainting

Inpainting is the process of reconstructing damaged parts of images and videos. This process is also known as image or video interpolation. The basic idea is to simulate the process done by restorers with antiques. Nowadays, with the wide use of digital cameras, inpainting has become an automatic process that is used not only for image restoration by deleting scratches, but also for other tasks, such as object or text removal.

OpenCV supports an inpainting algorithm as of Version 2.4. The function for this purpose is:

  • void inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags): This restores the areas indicated with non-zero values by the inpaintMask parameter in the source (src) image. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required