multicolorfits.layer_coverage#

multicolorfits.layer_coverage(rgb)[source]#

Per-pixel coverage (HSV-style “value”) of a colorized layer.

Returns the maximum of the R, G, and B channels. For a single-hue layer produced by colorize_image() this is zero on the black background and one at full colored signal — the natural alpha for premultiplied compositing.