Using a mask (multilabel segmentation node) for the image statistics with an empty label prints an error message to the log and to the status bar in the bottom, but it is not prominently shown to the user.
To reproduce:
- start the MITK workbench, open the Segmentation and the Image Statistics view
- load a basic 3D image
- create a new segmentation for that image and do not draw a mask
- select both nodes in the Image Statistics view
--> See how the hourglass does not disappear and the following error message is printed to the terminal / status bar:
Error when calculating statistics: Error while running computation. Error description: Failure while calculating the statistics: C:\jenkins\MITK\snap\src\MITK\Modules\ImageStatistics\mitkImageStatisticsCalculator.cpp:165:
I think the error message is important and should be shown to the user explicitly.