Auto White Balance(GrayWorldStage)
The Auto White Balance node applies automatic white balance correction to a video using the gray-world assumption.
Gray World Stage
Description
The Auto White Balance node applies automatic white balance correction to a video using the gray-world assumption. It is implemented by the GrayWorldStage class in the ComfyTV package and lives under the ComfyTV/VideoFX category, so it is intended to be used as one stage in a ComfyTV video effects workflow.
Gray-world white balancing assumes that, over a sufficiently varied scene, the average color should be neutral gray. The node uses that assumption to estimate the color cast in the incoming video and to compensate for it, reducing tints such as overly warm or overly cool footage without requiring manual color temperature or tint controls. Because the correction is derived from the image content itself, the amount of adjustment can vary from clip to clip and from frame to frame depending on what is visible.
The node has no configurable parameters beyond its video input. All correction is automatic.
Inputs
video
- Type:
COMFYTV_VIDEO - Required: No
The video to white balance. Connect the output of a video loader or an earlier stage in the ComfyTV video pipeline here.
This input is optional, so the node can be created and evaluated without a connected video. In that case there is no footage to analyze or correct. For any meaningful result, connect a COMFYTV_VIDEO source before running the workflow.
Outputs
video output
- Type:
COMFYTV_VIDEO
The white-balanced video. The output keeps the COMFYTV_VIDEO type, so it can be passed directly into further ComfyTV video effects, combinators, or output/save nodes.
Usage Notes
- Place the node anywhere in a ComfyTV video chain where a color correction stage is needed. Since it consumes and produces
COMFYTV_VIDEO, it composes with other stages in theComfyTV/VideoFXcategory. - The gray-world method works best on footage that contains a good spread of colors. Scenes dominated by a single color, such as a close-up of a red wall or a mostly blue sky, can bias the estimate and may not produce the neutral result you expect.
- There are no strength, temperature, or tint controls on this node. If the automatic result is too strong or too subtle, adjust the source footage or place additional color correction stages after this node.
- Because correction is estimated from the video content, expect the look to adapt as the scene changes. This is usually desirable for mixed lighting, but it can cause visible shifts across cuts.
- If you only want to preview the effect, the optional video input allows the node to exist in a graph unconnected; connect a real video before evaluating the output.
Comments
Sign in with GitHub to join the discussion.