Restores the selected region in an image using the region neighborhood.
void inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags)¶ cv2.inpaint(src, inpaintMask, inpaintRadius, flags[, dst]) → dst¶ void cvInpaint(const CvArr* src, const CvArr* inpaint_mask, CvArr* dst, double inpaintRange, int flags)¶ cv.Inpaint(src, mask, dst, inpaintRadius, flags) → None¶| Parameters: |
|
|---|
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.
Note