Restores the selected region in an image using the region neighborhood.
C++: void inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags)
Python: cv2.inpaint(src, inpaintMask, inpaintRadius, flags[, dst]) → dst
C: void cvInpaint(const CvArr* src, const CvArr* inpaint_mask, CvArr* dst, double inpaintRange, int flags)
Python: cv.Inpaint(src, mask, dst, inpaintRadius, flags) → None
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
for more details.
Help and Feedback
You did not find what you were looking for?
- Ask a question on the Q&A forum.
- If you think something is missing or wrong in the documentation,
please file a bug report.