Skip to main content

Module roi

Module roi 

Source
Expand description

ROI statistics + measurement units.

Structs§

RoiStats
First-moment statistics over a region of interest.

Functions§

angle_deg
Angle at vertex v between rays to p1 and p2, in degrees.
ellipse_stats
Compute RoiStats over the ellipse inscribed in the rectangle spanned by p1 and p2 (in displayed-image-pixel coordinates).
length_label
Distance between two displayed-pixel points in millimetres if pixel spacing is known, else pixels.
rect_stats
Compute RoiStats over the axis-aligned rectangle spanned by p1 and p2 (in displayed-image-pixel coordinates).