Currently, when a (closed) PLanarFigure (e.g. circle) lies partially outside of the bounds of an image, it cannot be used for masking the image in mitk::ImageStatisticsCalculator (see T2674).
This is due to a bug in VTK (#8269 in Mantis bug-tracker) which prevents the vtkPolyDataToImageStencil filters to be used for out-of-bounds polygons:
http://www.kwwidgets.org/Bug/bug_view_page.php?bug_id=8269&history=1
As soon as the VTK bug is fixed, the current workaround check for out-of-bounds in mitk::ImageStatisticsCalculator::InternalCalculateMaskFromPlanarFigure() can be removed.