NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Attributes | Protected Slots | Protected Member Functions | List of all members
ImageStatisticsView Class Reference

Provides simple image statistics over an image, or a region of interest. More...

Inheritance diagram for ImageStatisticsView:
Inheritance graph
[legend]
Collaboration diagram for ImageStatisticsView:
Collaboration graph
[legend]

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
 

Detailed Description

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.

See also
QmitkAbstractView

Constructor & Destructor Documentation

ImageStatisticsView::ImageStatisticsView ( )
ImageStatisticsView::~ImageStatisticsView ( )
virtual

Member Function Documentation

ImageStatisticsView::berryObjectMacro ( ImageStatisticsView  )
void ImageStatisticsView::CreateQtPartControl ( QWidget *  parent)
overridevirtual
void ImageStatisticsView::OnAxialRadioButtonToggled ( bool  toggled)
protectedslot
void ImageStatisticsView::OnCopyAllButtonClicked ( )
protectedslot

Selects every row in the table and copies them to the clipboard.

void ImageStatisticsView::OnCoronalRadioButtonToggled ( bool  toggled)
protectedslot
void ImageStatisticsView::OnPerSliceStatsCheckBoxToggled ( bool  toggled)
protectedslot
void ImageStatisticsView::OnPreferencesChanged ( const berry::IBerryPreferences *  )
overridevirtual

BlueBerry's notification about preference changes (e.g. from a preferences dialog).

void ImageStatisticsView::OnSagittalRadioButtonToggled ( bool  toggled)
protectedslot
void ImageStatisticsView::OnSelectionChanged ( berry::IWorkbenchPart::Pointer  source,
const QList< mitk::DataNode::Pointer > &  nodes 
)
overridevirtual

called by QmitkAbstractView when DataManager's selection has changed

void ImageStatisticsView::OnUpdateButtonClicked ( )
protectedslot

Checks to see if there is a valid selection, and if so, triggers Update with the currently selected nodes.

void ImageStatisticsView::SetFocus ( )
overrideprotectedvirtual

Member Data Documentation

const QString ImageStatisticsView::VIEW_ID = "uk.ac.ucl.cmic.imagestatistics"
static

The documentation for this class was generated from the following files: