Skip to main content

rect_stats

Function rect_stats 

Source
pub fn rect_stats(
    raw: &RawImage,
    p1: [f32; 2],
    p2: [f32; 2],
) -> Option<RoiStats>
Expand description

Compute RoiStats over the axis-aligned rectangle spanned by p1 and p2 (in displayed-image-pixel coordinates).

Returns None when the rectangle degenerates after clamping to the image bounds.