ComfyUI Node
cv2.xphoto.inpaint
Raw wrapper of cv2.xphoto.inpaint(src, mask, algorithmType). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'xphoto' module. See the OpenCV documentation for details.
cv2.xphoto.inpaint
- src
- mask
- result
◄algorithmTypeINPAINT_FSR_FAST►
Categoryimage/CV/low-level/xphoto
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| src | COMFY_MATCHTYPE_V3 | source image - #INPAINT_SHIFTMAP: 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. - #INPAINT_FSR_BEST or #INPAINT_FSR_FAST: 1-channel grayscale or 3-channel BGR 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 (#CV_8UC1), where non-zero pixels indicate valid image area, while zero pixels indicate area to be inpainted 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. | |
| algorithmType | COMBO | INPAINT_FSR_FAST | see xphoto::InpaintTypes |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |