2012-03-15 22:36:01 +08:00
Inpainting
==========
.. highlight :: cpp
inpaint
-----------
Restores the selected region in an image using the region neighborhood.
.. ocv:function :: void inpaint( InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags )
2012-05-30 19:13:07 +08:00
.. ocv:pyfunction :: cv2.inpaint(src, inpaintMask, inpaintRadius, flags[, dst]) -> dst
2012-03-15 22:36:01 +08:00
2012-05-30 19:13:07 +08:00
.. ocv:cfunction :: void cvInpaint( const CvArr* src, const CvArr* inpaint_mask, CvArr* dst, double inpaintRange, int flags )
2012-03-15 22:36:01 +08:00
.. ocv:pyoldfunction :: cv.Inpaint(src, mask, dst, inpaintRadius, flags) -> None
:param src: Input 8-bit 1-channel or 3-channel image.
:param inpaintMask: Inpainting mask, 8-bit 1-channel image. Non-zero pixels indicate the area that needs to be inpainted.
:param dst: Output image with the same size and type as ``src`` .
2012-05-30 19:13:07 +08:00
2012-04-14 03:04:44 +08:00
:param inpaintRadius: Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.
2012-03-15 22:36:01 +08:00
:param flags: Inpainting method that could be one of the following:
* **INPAINT_NS** Navier-Stokes based method.
* **INPAINT_TELEA** Method by Alexandru Telea [Telea04]_ .
The function reconstructs the selected image area from the pixel near the area boundary. The function may be used to remove dust and scratches from a scanned photo, or to remove undesirable objects from still images or video. See
http://en.wikipedia.org/wiki/Inpainting
for more details.
2013-07-29 21:51:16 +08:00
2013-08-06 22:24:09 +08:00
.. note ::
2013-07-29 21:51:16 +08:00
2013-08-06 22:24:09 +08:00
* An example using the inpainting technique can be found at opencv_source_code/samples/cpp/inpaint.cpp
2013-08-02 20:05:08 +08:00
2013-08-21 21:26:54 +08:00
* (Python) An example using the inpainting technique can be found at opencv_source_code/samples/python2/inpaint.py