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

GUI interface to enable the user to run the NiftyReg registration algorithm. .... More...

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

Public Member Functions

 QmitkNiftyRegView ()
 
virtual ~QmitkNiftyRegView ()
 
void OnNodeAdded (const mitk::DataNode *node)
 
void OnNodeRemoved (const mitk::DataNode *node)
 
void OnNodeChanged (const mitk::DataNode *node)
 

Static Public Attributes

static const std::string VIEW_ID = "uk.ac.ucl.cmic.views.niftyregview"
 

Protected Slots

void OnSourceImageComboBoxChanged (int index)
 Slot for the source image combo box which when clicked should list all the currently loaded images. More...
 
void OnTargetImageComboBoxChanged (int index)
 
void OnTargetMaskImageComboBoxChanged (int index)
 
void OnNumberOfLevelsSpinBoxValueChanged (int value)
 
void OnLevelsToPerformSpinBoxValueChanged (int value)
 
void OnSmoothSourceImageDoubleSpinBoxValueChanged (double value)
 
void OnSmoothTargetImageDoubleSpinBoxValueChanged (double value)
 
void OnNoSmoothingPushButtonPressed (void)
 
void OnDoBlockMatchingOnlyRadioButtonToggled (bool checked)
 
void OnDoNonRigidOnlyRadioButtonToggled (bool checked)
 
void OnDoBlockMatchingThenNonRigidRadioButtonToggled (bool checked)
 
void OnInputAffineCheckBoxToggled (bool checked)
 
void OnInputAffineBrowsePushButtonPressed (void)
 
void OnInputFlirtCheckBoxStateChanged (int state)
 
void OnUseNiftyHeaderCheckBoxStateChanged (int state)
 
void OnRigidOnlyRadioButtonToggled (bool checked)
 
void OnRigidThenAffineRadioButtonToggled (bool checked)
 
void OnDirectAffineRadioButtonToggled (bool checked)
 
void OnAladinUseSymmetricAlgorithmCheckBoxStateChanged (int state)
 
void OnAladinIterationsMaxSpinBoxValueChanged (int value)
 
void OnPercentBlockSpinBoxValueChanged (int value)
 
void OnPercentInliersSpinBoxValueChanged (int value)
 
void OnAladinInterpolationNearestRadioButtonToggled (bool checked)
 
void OnAladinInterpolationLinearRadioButtonToggled (bool checked)
 
void OnAladinInterpolationCubicRadioButtonToggled (bool checked)
 
void OnNonRigidInputControlPointCheckBoxStateChanged (int state)
 
void OnNonRigidInputControlPointBrowsePushButtonPressed (void)
 
void OnLowerThresholdTargetImageDoubleSpinBoxValueChanged (double value)
 
void OnUpperThresholdTargetImageDoubleSpinBoxValueChanged (double value)
 
void OnUpperThresholdTargetImageAutoPushButtonPressed (void)
 
void OnLowerThresholdTargetImageAutoPushButtonPressed (void)
 
void OnLowerThresholdSourceImageDoubleSpinBoxValueChanged (double value)
 
void OnUpperThresholdSourceImageDoubleSpinBoxValueChanged (double value)
 
void OnUpperThresholdSourceImageAutoPushButtonPressed (void)
 
void OnLowerThresholdSourceImageAutoPushButtonPressed (void)
 
void OnControlPointSpacingXDoubleSpinBoxValueChanged (double value)
 
void OnControlPointSpacingYDoubleSpinBoxValueChanged (double value)
 
void OnControlPointSpacingZDoubleSpinBoxValueChanged (double value)
 
void OnNumberSourceHistogramBinsSpinBoxValueChanged (int value)
 
void OnNumberTargetHistogramBinsSpinBoxValueChanged (int value)
 
void OnWeightBendingEnergyDoubleSpinBoxValueChanged (double value)
 
void OnWeightLogJacobianDoubleSpinBoxValueChanged (double value)
 
void OnLinearEnergyWeightsDoubleSpinBox_1ValueChanged (double value)
 
void OnLinearEnergyWeightsDoubleSpinBox_2ValueChanged (double value)
 
void OnApproxJacobianLogCheckBoxStateChanged (int state)
 
void OnSimilarityNMIRadioButtonToggled (bool checked)
 
void OnSimilaritySSDRadioButtonToggled (bool checked)
 
void OnSimilarityKLDivRadioButtonToggled (bool checked)
 
void OnUseSimpleGradientAscentCheckBoxStateChanged (int state)
 
void OnNonRigidIterationsMaxSpinBoxValueChanged (int value)
 
void OnUsePyramidalCheckBoxStateChanged (int state)
 
void OnSmoothingMetricDoubleSpinBoxValueChanged (double value)
 
void OnWarpedPaddingValueDoubleSpinBoxValueChanged (double value)
 
void OnWarpedPaddingValuePushButtonPressed (void)
 
void OnNonRigidNearestInterpolationRadioButtonToggled (bool checked)
 
void OnNonRigidLinearInterpolationRadioButtonToggled (bool checked)
 
void OnNonRigidCubicInterpolationRadioButtonToggled (bool checked)
 
void OnCancelPushButtonPressed (void)
 
void OnResetParametersPushButtonPressed (void)
 
void OnSaveTransformationPushButtonPressed (void)
 
void OnExecutePushButtonPressed (void)
 
void OnSaveRegistrationParametersPushButtonPressed (void)
 
void OnLoadRegistrationParametersPushButtonPressed (void)
 

Protected Member Functions

mitk::DataNode::Pointer GetDataNode (QString searchName)
 Get the DataNode with a specific name. If not found return 0. More...
 
mitk::DataStorage::SetOfObjects::ConstPointer GetNodes ()
 Get the list of data nodes from the data manager. More...
 
void UpdateAladinResultImageFilename ()
 Update the Aladin result/transformed image filename. More...
 
void UpdateNonRigidResultImageFilename ()
 Update the non-rigid result/transformed image filename. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 Called by framework, this method creates all the controls for this view. More...
 
virtual void SetDefaultParameters ()
 Set the default parameters. More...
 
virtual void SetGuiToParameterValues ()
 Set the default state of the GUI. More...
 
virtual void CreateConnections ()
 Creation of the connections of widgets in this class and the slots in this class. More...
 
virtual void SetFocus ()
 Called by framework, sets the focus on a specific widget. More...
 
void WriteRegistrationParametersToFile (QString &filename)
 Save the registration parameters (as a shell-script command line) More...
 
void ReadRegistrationParametersFromFile (QString &filename)
 Read the registration parameters (as a shell-script command line) More...
 
void PrintSelf (std::ostream &os)
 Print the object. More...
 
void Modified ()
 Function called whenever the object is modified. More...
 

Protected Attributes

Ui::QmitkNiftyRegViewControls m_Controls
 The specific controls for this widget. More...
 
bool m_Modified
 Flag indicating whether any factors influencing the segmentation have been modified. More...
 
float m_ProgressBarOffset
 
float m_ProgressBarRange
 
NiftyRegParameters< PrecisionTYPEm_RegParameters
 The registration parameters. More...
 
reg_aladin< PrecisionTYPE > * m_RegAladin
 The 'reg_aladin' registration object. More...
 
reg_f3d< PrecisionTYPE > * m_RegNonRigid
 The 'reg_f3d' registration object. More...
 

Friends

class RegistrationExecution
 
void UpdateProgressBar (float pcntProgress, void *param)
 
ITK_THREAD_RETURN_TYPE ExecuteRegistration (void *param)
 

Detailed Description

GUI interface to enable the user to run the NiftyReg registration algorithm. ....

Constructor & Destructor Documentation

QmitkNiftyRegView::QmitkNiftyRegView ( )
QmitkNiftyRegView::~QmitkNiftyRegView ( )
virtual

Member Function Documentation

void QmitkNiftyRegView::CreateConnections ( )
protectedvirtual

Creation of the connections of widgets in this class and the slots in this class.

void QmitkNiftyRegView::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Called by framework, this method creates all the controls for this view.

mitk::DataNode::Pointer QmitkNiftyRegView::GetDataNode ( QString  searchName)
protected

Get the DataNode with a specific name. If not found return 0.

mitk::DataStorage::SetOfObjects::ConstPointer QmitkNiftyRegView::GetNodes ( )
protected

Get the list of data nodes from the data manager.

void QmitkNiftyRegView::Modified ( )
protected

Function called whenever the object is modified.

void QmitkNiftyRegView::OnAladinInterpolationCubicRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnAladinInterpolationLinearRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnAladinInterpolationNearestRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnAladinIterationsMaxSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnAladinUseSymmetricAlgorithmCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnApproxJacobianLogCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnCancelPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnControlPointSpacingXDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnControlPointSpacingYDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnControlPointSpacingZDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnDirectAffineRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnDoBlockMatchingOnlyRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnDoBlockMatchingThenNonRigidRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnDoNonRigidOnlyRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnExecutePushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnInputAffineBrowsePushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnInputAffineCheckBoxToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnInputFlirtCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnLevelsToPerformSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnLinearEnergyWeightsDoubleSpinBox_1ValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnLinearEnergyWeightsDoubleSpinBox_2ValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnLoadRegistrationParametersPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnLowerThresholdSourceImageAutoPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnLowerThresholdSourceImageDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnLowerThresholdTargetImageAutoPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnLowerThresholdTargetImageDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnNodeAdded ( const mitk::DataNode *  node)
void QmitkNiftyRegView::OnNodeChanged ( const mitk::DataNode *  node)
void QmitkNiftyRegView::OnNodeRemoved ( const mitk::DataNode *  node)
void QmitkNiftyRegView::OnNonRigidCubicInterpolationRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnNonRigidInputControlPointBrowsePushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnNonRigidInputControlPointCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnNonRigidIterationsMaxSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnNonRigidLinearInterpolationRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnNonRigidNearestInterpolationRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnNoSmoothingPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnNumberOfLevelsSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnNumberSourceHistogramBinsSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnNumberTargetHistogramBinsSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnPercentBlockSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnPercentInliersSpinBoxValueChanged ( int  value)
protectedslot
void QmitkNiftyRegView::OnResetParametersPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnRigidOnlyRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnRigidThenAffineRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnSaveRegistrationParametersPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnSaveTransformationPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnSimilarityKLDivRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnSimilarityNMIRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnSimilaritySSDRadioButtonToggled ( bool  checked)
protectedslot
void QmitkNiftyRegView::OnSmoothingMetricDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnSmoothSourceImageDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnSmoothTargetImageDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnSourceImageComboBoxChanged ( int  index)
protectedslot

Slot for the source image combo box which when clicked should list all the currently loaded images.

void QmitkNiftyRegView::OnTargetImageComboBoxChanged ( int  index)
protectedslot
void QmitkNiftyRegView::OnTargetMaskImageComboBoxChanged ( int  index)
protectedslot
void QmitkNiftyRegView::OnUpperThresholdSourceImageAutoPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnUpperThresholdSourceImageDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnUpperThresholdTargetImageAutoPushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnUpperThresholdTargetImageDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnUseNiftyHeaderCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnUsePyramidalCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnUseSimpleGradientAscentCheckBoxStateChanged ( int  state)
protectedslot
void QmitkNiftyRegView::OnWarpedPaddingValueDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnWarpedPaddingValuePushButtonPressed ( void  )
protectedslot
void QmitkNiftyRegView::OnWeightBendingEnergyDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::OnWeightLogJacobianDoubleSpinBoxValueChanged ( double  value)
protectedslot
void QmitkNiftyRegView::PrintSelf ( std::ostream &  os)
protected

Print the object.

void QmitkNiftyRegView::ReadRegistrationParametersFromFile ( QString &  filename)
protected

Read the registration parameters (as a shell-script command line)

void QmitkNiftyRegView::SetDefaultParameters ( )
protectedvirtual

Set the default parameters.

void QmitkNiftyRegView::SetFocus ( )
protectedvirtual

Called by framework, sets the focus on a specific widget.

void QmitkNiftyRegView::SetGuiToParameterValues ( )
protectedvirtual

Set the default state of the GUI.

void QmitkNiftyRegView::UpdateAladinResultImageFilename ( )
protected

Update the Aladin result/transformed image filename.

void QmitkNiftyRegView::UpdateNonRigidResultImageFilename ( )
protected

Update the non-rigid result/transformed image filename.

void QmitkNiftyRegView::WriteRegistrationParametersToFile ( QString &  filename)
protected

Save the registration parameters (as a shell-script command line)

Friends And Related Function Documentation

ITK_THREAD_RETURN_TYPE ExecuteRegistration ( void param)
friend
friend class RegistrationExecution
friend
void UpdateProgressBar ( float  pcntProgress,
void param 
)
friend

Member Data Documentation

Ui::QmitkNiftyRegViewControls QmitkNiftyRegView::m_Controls
protected

The specific controls for this widget.

bool QmitkNiftyRegView::m_Modified
protected

Flag indicating whether any factors influencing the segmentation have been modified.

float QmitkNiftyRegView::m_ProgressBarOffset
protected

The current progress bar offset (0 < x < 100%) to enable progress to be divided between multiple processes.

float QmitkNiftyRegView::m_ProgressBarRange
protected

The current progress bar range (0 < x < 100%) to enable progress to be divided between multiple processes.

reg_aladin<PrecisionTYPE>* QmitkNiftyRegView::m_RegAladin
protected

The 'reg_aladin' registration object.

reg_f3d<PrecisionTYPE>* QmitkNiftyRegView::m_RegNonRigid
protected

The 'reg_f3d' registration object.

NiftyRegParameters<PrecisionTYPE> QmitkNiftyRegView::m_RegParameters
protected

The registration parameters.

const std::string QmitkNiftyRegView::VIEW_ID = "uk.ac.ucl.cmic.views.niftyregview"
static

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