Nodes/comfyui_cv/cv2.xphoto.inpaint
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.xphoto.inpaint
  • src
  • mask
  • result
algorithmTypeINPAINT_FSR_FAST
Categoryimage/CV/low-level/xphoto

Inputs (3)

NameTypeDefaultDescription
srcCOMFY_MATCHTYPE_V3source 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.
maskNPARRAY,IMAGE,MASKmask (#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.
algorithmTypeCOMBOINPAINT_FSR_FASTsee xphoto::InpaintTypes

Outputs (1)

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