Currently the only check of a ROI's validity is whether it meets a minimum size.
However, an essential check is that the ROI contains interior pixels, i.e. it isn't just a flat boundary.
Additional checks could be to confirm there is a boundary and that it is continuous.
Currently the only check of a ROI's validity is whether it meets a minimum size.
However, an essential check is that the ROI contains interior pixels, i.e. it isn't just a flat boundary.
Additional checks could be to confirm there is a boundary and that it is continuous.