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.
cv2.cvtColorTwoPlane
- src1
- src2
- nparray
◄codeCOLOR_BGR2GRAY►
◄hintALGO_HINT_DEFAULT►
Categoryimage/CV/low-level/cv2 C
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| src1 | NPARRAY,IMAGE,MASK | 8-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. | |
| src2 | NPARRAY,IMAGE,MASK | image 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. | |
| code | COMBO | COLOR_BGR2GRAY | Specifies 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 |
| hintopt | COMBO | ALGO_HINT_DEFAULT | Implementation modification flags. See #AlgorithmHint |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |