Table of Contents

Method Inpaint

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Inpaint(InputArray, InputArray, OutputArray, double, InpaintTypes)

Restores the selected region in an image using the region neighborhood.

public static void Inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, InpaintTypes flags)

Parameters

src InputArray

Input 8-bit, 16-bit unsigned or 32-bit float 1-channel or 8-bit 3-channel image.

inpaintMask InputArray

Inpainting mask, 8-bit 1-channel image. Non-zero pixels indicate the area that needs to be inpainted.

dst OutputArray

Output image with the same size and type as src.

inpaintRadius double

Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.

flags InpaintTypes

Inpainting method that could be cv::INPAINT_NS or cv::INPAINT_TELEA