Skip to main content

within

Function within 

Source
pub fn within(results: &[RegionReport], tolerance: f64) -> bool
Expand description

Every region within tolerance — the aggregate diff reports as ok.

tolerance is a percentage of masked pixels allowed to differ, and it lives here rather than inside compare so a stored report can be re-judged at a different bar without re-measuring.