ComfyUI Node
CV Threshold Flags
Authors a flags value once and fans it out: wire the 'flags' STRING output into the flags input of any number of cv2_threshold / cv2_thresholdWithMask nodes so they all share one configuration. Each toggle ORs one bit in. The base picks the threshold method (BINARY, TRUNC, TOZERO, ...); OTSU auto-computes the threshold from the histogram, TRIANGLE uses the histogram peak-to-tail distance. The 'value' INT output is the resolved integer for raw int flag params or MathExpression.
CV Threshold Flags
- flags
- value
◄flagsTHRESH_BINARY►
Categoryimage/CV/low-level
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| flags | STRING | THRESH_BINARY | Pipe-joined cv2 constant names, e.g. "THRESH_BINARY | THRESH_OTSU". In the UI this renders as a base dropdown with one toggle per flag. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| flags | STRING | The pipe-joined flags string - wire it into the flags input of cv2_threshold / cv2_thresholdWithMask nodes. |
| value | INT | The resolved integer (constants OR-ed together). |