Commit adcbb3b5 authored by Andrea Bizzego's avatar Andrea Bizzego
Browse files

fixed ndims for mask

parent 706e4ecb
......@@ -231,7 +231,7 @@ def checkMask(imageNode, maskNode, **kwargs):
logger.debug('Checking minimum number of dimensions requirements (%d)', minDims)
ndims = numpy.sum((boundingBox[1::2] - boundingBox[0::2] + 1) > 1) # UBound - LBound + 1 = Size
if ndims <= minDims:
if ndims < minDims:
logger.error('mask has too few dimensions (number of dimensions %d, minimum required %d)', ndims, minDims)
return None, correctedMask
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment