Nodes/comfyui_cv/cv2.ft.inpaint
ComfyUI Node

cv2.ft.inpaint

Raw wrapper of cv2.ft.inpaint(image, mask, radius, function, algorithm). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'ft' module. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.ft.inpaint
  • image
  • mask
  • result
radius0
functionLINEAR
algorithmMULTI_STEP
Categoryimage/CV/low-level/ft

Inputs (5)

NameTypeDefaultDescription
imageCOMFY_MATCHTYPE_V3Input image. The image output(s) echo this input's format. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
maskNPARRAY,IMAGE,MASKMask used for unwanted area marking. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
radiusINT0-2147483648–2147483647Radius of the basic function.
functionCOMBOLINEARFunction type could be one of the following: - `ft::LINEAR` Linear basic function.
algorithmCOMBOMULTI_STEPAlgorithm could be one of the following: - `ft::ONE_STEP` One step algorithm. - `ft::MULTI_STEP` This algorithm automaticaly increases radius of the basic function. - `ft::ITERATIVE` Iterative algorithm running in more steps using partial computations. This function provides inpainting technique based on the fuzzy mathematic.

Outputs (1)

NameTypeDescription
resultCOMFY_MATCHTYPE_V3Echoes the 'image' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY.