NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Provides simple image statistics over an image, or a region of interest. More...
Public Member Functions | |
berryObjectMacro (ImageStatisticsView) | |
ImageStatisticsView () | |
virtual | ~ImageStatisticsView () |
virtual void | CreateQtPartControl (QWidget *parent) override |
virtual void | OnSelectionChanged (berry::IWorkbenchPart::Pointer source, const QList< mitk::DataNode::Pointer > &nodes) override |
called by QmitkAbstractView when DataManager's selection has changed More... | |
virtual void | OnPreferencesChanged (const berry::IBerryPreferences *) override |
BlueBerry's notification about preference changes (e.g. from a preferences dialog). More... | |
Static Public Attributes | |
static const QString | VIEW_ID = "uk.ac.ucl.cmic.imagestatistics" |
Protected Slots | |
void | OnPerSliceStatsCheckBoxToggled (bool toggled) |
void | OnAxialRadioButtonToggled (bool toggled) |
void | OnSagittalRadioButtonToggled (bool toggled) |
void | OnCoronalRadioButtonToggled (bool toggled) |
void | OnUpdateButtonClicked () |
Checks to see if there is a valid selection, and if so, triggers Update with the currently selected nodes. More... | |
void | OnCopyAllButtonClicked () |
Selects every row in the table and copies them to the clipboard. More... | |
Protected Member Functions | |
virtual void | SetFocus () override |
Provides simple image statistics over an image, or a region of interest.
This class will refresh, either by directly hitting the update button, or if the preference to auto-update is set to true, then stats are automatically updated when a valid selection is made in the DataManager. A valid selection is 1 or 2 images. If only 1 image is selected, the stats are computed over the whole image. If 2 images are selected, the first is assumed to be the reference data, and the second is assumed to be a mask. The mask does not have to be binary. If the mask is non-binary, the statistics are computed for every non-zero label type. If the preference "assume a binary mask", then regardless of how many values are in the mask image, anything that is not the background value (default 0) is assumed to be foreground.
ImageStatisticsView::ImageStatisticsView | ( | ) |
|
virtual |
ImageStatisticsView::berryObjectMacro | ( | ImageStatisticsView | ) |
|
overridevirtual |
|
protectedslot |
|
protectedslot |
Selects every row in the table and copies them to the clipboard.
|
protectedslot |
|
protectedslot |
|
overridevirtual |
BlueBerry's notification about preference changes (e.g. from a preferences dialog).
|
protectedslot |
|
overridevirtual |
called by QmitkAbstractView when DataManager's selection has changed
|
protectedslot |
Checks to see if there is a valid selection, and if so, triggers Update with the currently selected nodes.
|
overrideprotectedvirtual |
|
static |