ROI API# ROI classes can be subclassed to add custom selection or analysis logic. Subclassing# The ROI classes can be subclassed to add custom selection or analysis logic. The required methods are measure, profile, fromfile, and tofile.