added utils for calculating properties of ROIs