Nodes/comfyui_cv/cv2.ft.FT02D_iteration
ComfyUI Node

cv2.ft.FT02D_iteration

Raw wrapper of cv2.ft.FT02D_iteration(matrix, kernel, mask, firstStop, maskOutput?). 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.FT02D_iteration
  • matrix
  • kernel
  • mask
  • maskOutput
  • int
  • nparray_1
  • nparray_2
firstStopfalse
Categoryimage/CV/low-level/ft

Inputs (5)

NameTypeDefaultDescription
matrixNPARRAY,IMAGE,MASKInput matrix. 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.
kernelNPARRAY,IMAGE,MASKKernel used for processing. Function `ft::createKernel` can be used. 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.
firstStopBOOLEANfalseIf **true** function returns -1 when first problem appears. In case of `false` the process is completed and summation of all problems returned. This function computes iteration of F-transfrom and inverse F-transfotm and handle image and mask change. The function is used in `ft::inpaint` function.
maskOutputoptNPARRAY,IMAGE,MASKMask after one iteration. 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.

Outputs (3)

NameTypeDescription
intINT
nparray_1NPARRAY
nparray_2NPARRAY