Summary
Extend image statistics module with histogram and line profile widgets and further masking options.
The module ImageStatistics calculates statistics for images (masked or unmasked) and provides an export interface via clipboard and CSV files. The module should be extended to support statistics (both graphically and in numbers) for images, image regions, and paths through an image. The module is intended as a standalone widget which can be activated on the framework GUI to show statistics about the currently selected image.
Requirements
Datatypes supported:
- Images (2D, 3D, nD+t, image regions, masked images)
- Paths through images (line profiles)
Widgets for graphical display:
HistogramWidget (for histogram of image / image region)
CurveProfileWidget (for gray-value profile along spatial curve)
Statistics:
- Gray-value / vector component Mean, SD, Min, Max
- Index of Min/Max, number of voxels
Export functions:
- Export of histogram, line profile, and statistics
- Export to CSV file
- Export to clipboard (in CSV format)
Optional features:
- Statistics for multiple selected images
Proposed Solution
GUI:
- Area showing image statistics in tabular form
Area for HistogramWidget (cf. bug 2816) or LineProfileWidget
- Selection of widget by data type or by user
Selection of data
- If an image is selected directly, display statistics for it
If a data object describing an image part (image mask, region, PlanarFigure) is selected, display statistics for the parent image of this object (if available)
- Data for which statistics is displayed is indicated in the GUI
Operation modes:
- Image mode: unmasked version of the selected image (or the next parent node containing an image)
Region mode: mask image by means of binary mask, region, PlanarFigure if available at currently selected node
