Page MenuHomePhabricator

Extreme values in histogram (statistics) let it crash
Closed, DuplicatePublic

Description

  1. Load an image with some normal values (say between 1 and 100) and one outlier (say float max).
  2. Open statistics plugin and select the image.
  3. Deselect "Use default bin size." checkbox and click into Bin size field.
  4. enter small bin size (say 1).

Recalculation of the histogram will cause mitk to crash, since one bin will be created for each number between [1,float_max]

Possible solution suggestions: Warning for the user that the histogram couldn't be created or sparse histograms.