| CvXPhotoInpaint Method |
The function implements different single-image inpainting algorithms.
Namespace:
OpenCvSharp.XPhoto
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void Inpaint(
Mat src,
Mat mask,
Mat dst,
InpaintTypes algorithm
)
Public Shared Sub Inpaint (
src As Mat,
mask As Mat,
dst As Mat,
algorithm As InpaintTypes
)
public:
static void Inpaint(
Mat^ src,
Mat^ mask,
Mat^ dst,
InpaintTypes algorithm
)
static member Inpaint :
src : Mat *
mask : Mat *
dst : Mat *
algorithm : InpaintTypes -> unit
Parameters
- src
- Type: OpenCvSharpMat
source image, it could be of any type and any number of channels from 1 to 4. In case of 3- and 4-channels images the function expect them in CIELab colorspace or similar one, where first color component shows intensity, while second and third shows colors. Nonetheless you can try any colorspaces. - mask
- Type: OpenCvSharpMat
mask (CV_8UC1), where non-zero pixels indicate valid image area, while zero pixels indicate area to be inpainted - dst
- Type: OpenCvSharpMat
destination image - algorithm
- Type: OpenCvSharp.XPhotoInpaintTypes
see OpenCvSharp.XPhoto.InpaintTypes
See Also