Skip to main content

score

Function score 

Source
pub fn score<M: Metric + ?Sized>(
    metric: &mut M,
    reference: &PixelView<'_>,
    candidate: &PixelView<'_>,
    opts: EvalOpts<'_>,
) -> MetricResult<M::Output>
Expand description

Admit image geometry and validate scores, preserving typed native results and located failures. Native errors take precedence over a later stop.