Skip to content

Commit

Permalink
ENH: Update warning message for checking ROI.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostJM committed Aug 13, 2018
1 parent 4ba909a commit 1f16b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiomics/imageoperations.py
Expand Up @@ -297,7 +297,7 @@ def _checkROI(imageNode, maskNode, label):
if numpy.any(numpy.min(ROIBounds, axis=0) < (- .5 - tolerance)) or \
numpy.any(numpy.max(ROIBounds, axis=0) > (numpy.array(imageNode.GetSize()) - .5 + tolerance)):
logger.error('Bounding box of ROI is larger than image space:\n\t'
'ROI bounds (image coordinate space) %s\n\tImage Size %s', ROIBounds, imageNode.GetSize())
'ROI bounds (x, y, z image coordinate space) %s\n\tImage Size %s', ROIBounds, imageNode.GetSize())
return None

logger.debug('ROI valid, calculating resampling grid')
Expand Down

0 comments on commit 1f16b9e

Please sign in to comment.