Page MenuHomePhabricator

ImageStatistics crashes when using 3D mask for a 4D image
Closed, ResolvedPublic

Description

The MITK Diffusion 2012.09 crashes on following settings:

  1. Load a 3D binary image
  2. Load a 3D+t image
  3. Open the statistics view and select both images ( i.e. the 3D image is used for masking the 3D+t image for the computation ) --> [CRASH]

Application output:

terminate called after throwing an instance of 'itk::ExceptionObject'

what():  /localdata/hering/MITKDiffusion_Release2012/MITK-Release-src/Modules/ImageStatistics/mitkImageStatisticsCalculator.cpp:128:

itk::ERROR: ImageStatisticsCalculator(0x506cee0): Image and image mask need to have equal number of time steps!
Aborted

Found in the diffusion application but it is very likely the bug occurs also in the MITK Workbench 2012.09

Event Timeline

As supposed the bug also occurs in MITK Workbench. Changing Component.

[c251ad]: Merge branch 'bug-13416-ImageStatisticsCrash-on-DifferentDimensions'

Merged commits:

2012-10-17 14:23:50 Jan Hering [ad5ea2]
Fixed exception catching in ImageStatistics

  • the CalculationThread now handles exceptions thrown during
  • configuration ( SetImageMask, SetPlanarFigure )