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.
cv2.ft.inpaint
- image
- mask
- result
◄radius0►
◄functionLINEAR►
◄algorithmMULTI_STEP►
Categoryimage/CV/low-level/ft
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Input 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. | |
| mask | NPARRAY,IMAGE,MASK | Mask 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. | |
| radius | INT | 0-2147483648–2147483647 | Radius of the basic function. |
| function | COMBO | LINEAR | Function type could be one of the following: - `ft::LINEAR` Linear basic function. |
| algorithm | COMBO | MULTI_STEP | Algorithm 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)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'image' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |