density#

property rlemasklib.RLEMask.density: float[source]#

The ratio of the number of runlengths vs number of pixels of the entire mask (not just the foreground).

Return type:

float