How ROIs work in SamuROIΒΆ

Note

In the following we will use mask as synonym for ROI.

SamuROI comes with a set of predefined types of ROIs. Those are:

All of these classes inherit from a common base class samuroi.masks.mask.Mask which requires the derived classes to implement an “apply” function samuroi.masks.mask.Mask.__call__(). Whenever a trace of a roi is calculated this function will be called on the respective roi object.

The samuroi.masks.branch.BranchMask and the samuroi.masks.segmentation.Segmentation also have a set of child masks.

For examples how to work with these classes see Working with ROIs.