Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "types/opencv/photo_inpaint"

Index

Variables

Functions

Variables

Const INPAINT_NS

INPAINT_NS: any

Const INPAINT_TELEA

INPAINT_TELEA: any

Functions

inpaint

  • inpaint(src: InputArray, inpaintMask: InputArray, dst: OutputArray, inpaintRadius: double, flags: int): void
  • 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.

    An example using the inpainting technique can be found at opencv_source_code/samples/cpp/inpaint.cpp (Python) An example using the inpainting technique can be found at opencv_source_code/samples/python/inpaint.py

    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: int

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

    Returns void

Generated using TypeDoc