ComfyUI Node
TiledWan Mask Statistics
Analyzes mask properties and provides detailed statistical information. Calculates standard statistics plus mask-specific metrics like coverage ratio, connected component analysis, and white pixel count. Essential for understanding mask quality, coverage area, and structure. Helps debug masking operations and validate mask inputs for inpainting or compositing workflows.
TiledWan Mask Statistics
- mask
- mask
- min_value
- max_value
- mean_value
- variance
- median_value
- white_pixel_count
◄analyze_connected_componentstrue►
CategoryTiledWan
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | Input mask to analyze. Should be a grayscale mask with values typically between 0-1. | |
| analyze_connected_components | BOOLEAN | true | Analyze connected regions in the mask to count separate masked areas and find the largest connected component. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| mask | MASK | Pass-through of the input mask |
| min_value | FLOAT | Minimum mask value found |
| max_value | FLOAT | Maximum mask value found |
| mean_value | FLOAT | Average mask value (coverage ratio) |
| variance | FLOAT | Variance of mask values |
| median_value | FLOAT | Median mask value |
| white_pixel_count | INT | Number of white/masked pixels (where value > 0.5) |