Nodes/comfyui_cv/cv2.cvtColorTwoPlane
ComfyUI Node

cv2.cvtColorTwoPlane

Raw wrapper of cv2.cvtColorTwoPlane(src1, src2, code, hint?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.cvtColorTwoPlane
  • src1
  • src2
  • nparray
codeCOLOR_BGR2GRAY
hintALGO_HINT_DEFAULT
Categoryimage/CV/low-level/cv2 C

Inputs (4)

NameTypeDefaultDescription
src1NPARRAY,IMAGE,MASK8-bit image (#CV_8U) of the Y plane. 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.
src2NPARRAY,IMAGE,MASKimage containing interleaved U/V plane. 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.
codeCOMBOCOLOR_BGR2GRAYSpecifies the type of conversion. It can take any of the following values: - #COLOR_YUV2BGR_NV12 - #COLOR_YUV2RGB_NV12 - #COLOR_YUV2BGRA_NV12 - #COLOR_YUV2RGBA_NV12 - #COLOR_YUV2BGR_NV21 - #COLOR_YUV2RGB_NV21 - #COLOR_YUV2BGRA_NV21 - #COLOR_YUV2RGBA_NV21
hintoptCOMBOALGO_HINT_DEFAULTImplementation modification flags. See #AlgorithmHint

Outputs (1)

NameTypeDescription
nparrayNPARRAY