Currently, mitk::ImageStatisticsCalculator and the histogram / line profile widgets are directly depending on PlanarFigure classes. PlanarFigures can be used to define the ROI in which statistics shall be calculated.
This dependency should be removed to make the interface of the statistics classes more simple and clear. Instead of passing PlanarFigure, more basic data types (mitk::Image) should be used to pass on the information. An adaptor class should be implemented to convert PlanarFigures to 2D mitk::Images, which can then be served to the mitk::ImageStatisticsCalculator.
Eventually, the statistics related classes could be externalized from PlanarFigure and MitkExt modules in a separate module