Definition of terms =================== .. glossary:: ROI Region of interest. A subset of samples within an image. This is specified by the boundary or surface of the object. Shape Geometric shape or mask. A shape is a geometric primitive or bitmask. A ROI is composed of one or more shapes.