saturatedRatio

fun RgbImage.saturatedRatio(threshold: Int = 250): Double

Fraction (0.0..1.0) of pixels where all channels are at least threshold - i.e. blown-out highlights such as glare on a laminated card.