Package-level declarations
Functions
Link copied to clipboard
fun SampleExpression.evaluate(pixel: ByteArray, channels: List<ColorBand>, map: (Int) -> Double = { it.toDouble() }): Double?
Evaluates this expression against an RGBA pixel using named channels.
fun SampleExpression.evaluate(pixel: ByteArray, channels: List<ColorBand>, mappingRange: ClosedFloatingPointRange<Double>): Double?
Convenience: evaluates while linearly mapping unsigned byte values (0…255) into a target range.