Nodes/comfyUI-TiledWan/TiledWan Mask Statistics
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.

By Baverne·Created about a year ago·Updated 6 months ago· 8
TiledWan Mask Statistics
  • mask
  • mask
  • min_value
  • max_value
  • mean_value
  • variance
  • median_value
  • white_pixel_count
analyze_connected_componentstrue
CategoryTiledWan

Inputs (2)

NameTypeDefaultDescription
maskMASKInput mask to analyze. Should be a grayscale mask with values typically between 0-1.
analyze_connected_componentsBOOLEANtrueAnalyze connected regions in the mask to count separate masked areas and find the largest connected component.

Outputs (7)

NameTypeDescription
maskMASKPass-through of the input mask
min_valueFLOATMinimum mask value found
max_valueFLOATMaximum mask value found
mean_valueFLOATAverage mask value (coverage ratio)
varianceFLOATVariance of mask values
median_valueFLOATMedian mask value
white_pixel_countINTNumber of white/masked pixels (where value > 0.5)