Package-level declarations

Functions

Link copied to clipboard
fun RgbImage.blurScore(normalizedSize: Int = 256): Double

Focus score on a normalised copy whose longest side is normalizedSize, so results are comparable between a 4K photo and a 720p camera frame.

Link copied to clipboard

Focus measure: variance of the 4-neighbour Laplacian. Higher is sharper.

Link copied to clipboard

Mean luma in 0.0..255.0.

Link copied to clipboard
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.