MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationStepCtUsRegistration Class Reference

Navigation step for marking risk structures. The user can add risk structures by interacting with the render windows. The risk structures are organized in an embedded table view. More...

#include <QmitkUSNavigationStepCtUsRegistration.h>

Inheritance diagram for QmitkUSNavigationStepCtUsRegistration:
QmitkUSAbstractNavigationStep

Signals

void ActualizeCtToUsRegistrationWidget ()
 
void GetCursorPosition ()
 
- Signals inherited from QmitkUSAbstractNavigationStep
void SignalReadyForNextStep ()
 Signals that all necessary actions where done. The user can proceed with the next stept after this was signaled.
 
void SignalNoLongerReadyForNextStep ()
 Signals that it is no longer possible to proceed with following steps. This signal is emitted when the result data of the step was removed or changed, so that the old results are invalid for following steps.
 
void SignalCombinedModalityChanged (itk::SmartPointer< mitk::AbstractUltrasoundTrackerDevice >)
 Signals that the combined modality was changed by this step. This signal is mainly for steps which creates the combined modality. The new combined modality is given as a parameter.
 
void SignalIntermediateResult (const itk::SmartPointer< mitk::DataNode >)
 Signals that an intermediate result was produced. The properties of the given data node must contain the results. This signal can be used to log the intermediate results of an experiment, for example by using the mitk::USNavigationExperimentLogging.
 
void SignalSettingsNodeChanged (itk::SmartPointer< mitk::DataNode >)
 Signals that the settings node was changed. This signal must not be emitted in an OnSettingsChanged() method.
 

Public Member Functions

 QmitkUSNavigationStepCtUsRegistration (QWidget *parent=nullptr)
 
 ~QmitkUSNavigationStepCtUsRegistration () override
 
bool OnStartStep () override
 Initialization of the data storage nodes.
 
bool OnStopStep () override
 Resets widget and filter and removes nodes from the data storage.
 
bool OnFinishStep () override
 There is nothing to be done.
 
bool OnActivateStep () override
 Selects input for the node displacement filter and emits "ReadyForNextStep" signal. The input selection cannot be done earlier.
 
bool OnDeactivateStep () override
 Called when the navigation step gets deactivated (-> state started). This method may be implemented by a concrete subclass to handle actions necessary on deactivating the navigation step, which means switching to another step.
 
void OnUpdate () override
 Updates the tracking validity status and the combined modality.
 
void OnSettingsChanged (const itk::SmartPointer< mitk::DataNode > settingsNode) override
 
QString GetTitle () override
 Getter for the title of the navigation step. This title should be human readable and can be used to display the available steps and the currently active step to the user. The method has to be implemented by a concrete subclass.
 
FilterVector GetFilter () override
 
void OnCalculateTRE (mitk::Point3D centroidOfTargetInUSImage)
 
- Public Member Functions inherited from QmitkUSAbstractNavigationStep
 QmitkUSAbstractNavigationStep (QWidget *parent=nullptr)
 
 ~QmitkUSAbstractNavigationStep () override
 
virtual bool GetIsRestartable ()
 Indicates if it makes sense to be able to restart the step. This method must be implemented by concrete subclasses if it should not be possible to restart them.
 
void SetDataStorage (itk::SmartPointer< mitk::DataStorage > dataStorage)
 Sets the data storage for the exchange of results between navigation steps.
 
void SetCombinedModality (itk::SmartPointer< mitk::AbstractUltrasoundTrackerDevice > combinedModality)
 Sets the combined modality for the navigation step. OnSetCombinedModality() is called internal.
 
bool StartStep ()
 Should be called to start the navigation step.
 
bool StopStep ()
 Should be called to stop the navigation step.
 
bool RestartStep ()
 Should be called to restart the navigation step.
 
bool FinishStep ()
 Should be called to finish the navigation step. The state has to be 'active' before and is 'started' afterwards.
 
bool ActivateStep ()
 Should be called to activate the navigation step. The step gets started before if it was stopped.
 
bool DeactivateStep ()
 Should be called to deactivate the navigation step.
 
void Update ()
 Should be called periodically while the navigation step is active. Internal, the method OnUpdate() is called.
 
NavigationStepState GetNavigationStepState ()
 Get the current state of the navigation step.
 

Protected Slots

void OnFloatingImageComboBoxSelectionChanged (const mitk::DataNode *node)
 
void OnRegisterMarkerToFloatingImageCS ()
 
void OnLocalizeFiducials ()
 
void OnVisualizeCTtoUSregistration ()
 
void OnFreeze ()
 
void OnActualizeSegmentationSurfacePointSetData ()
 
void OnGetCursorPosition ()
 
void OnCalculateCenter ()
 
void OnAddCtImageClicked ()
 
void OnRemoveCtImageClicked ()
 
void OnEvaluateGroundTruthFiducialLocalizationProtocol ()
 

Protected Member Functions

void OnSetCombinedModality () override
 Called every time SetCombinedModality() was called. This method may be implemented by a concrete subclass to handle this event. The default implementation does nothing.
 
void UnsetFloatingImageGeometry ()
 
void SetFloatingImageGeometryInformation (mitk::Image *image)
 
double GetVoxelVolume ()
 
double GetFiducialVolume (double radius)
 
bool FilterFloatingImage ()
 
void InitializeImageFilters ()
 
double GetCharacteristicDistanceAWithUpperMargin ()
 
double GetCharacteristicDistanceBWithLowerMargin ()
 
double GetCharacteristicDistanceBWithUpperMargin ()
 
double GetMinimalFiducialConfigurationDistance ()
 
void CreateMarkerModelCoordinateSystemPointSet ()
 
void InitializePointsToTransformForGroundTruthProtocol ()
 
void CreatePointsToTransformForGroundTruthProtocol ()
 
void TransformPointsGroundTruthProtocol ()
 
void AddTransformedPointsToDataStorage ()
 
double CalculateMeanFRE ()
 
double CalculateStandardDeviationOfFRE (double meanFRE)
 
void CalculateGroundTruthProtocolTRE ()
 
void EliminateTooSmallLabeledObjects (ImageType::Pointer binaryImage)
 
bool EliminateFiducialCandidatesByEuclideanDistances ()
 
void ClassifyFiducialCandidates ()
 
void GetCentroidsOfLabeledObjects ()
 
void NumerateFiducialMarks ()
 
void CalculateDistancesBetweenFiducials (std::vector< std::vector< double > > &distanceVectorsFiducials)
 
bool FindFiducialNo1 (std::vector< std::vector< double > > &distanceVectorsFiducials)
 
bool FindFiducialNo2And3 ()
 
bool FindFiducialNo4 (std::vector< std::vector< double > > &distanceVectorsFiducials)
 
bool FindFiducialNo5 ()
 
bool FindFiducialNo6 ()
 
bool FindFiducialNo7 ()
 
bool FindFiducialNo8 ()
 
void DefineDataStorageImageFilter ()
 
void CreateQtPartControl (QWidget *parent)
 
- Protected Member Functions inherited from QmitkUSAbstractNavigationStep
virtual bool OnRestartStep ()
 Called when restarting a navigation step. This method may be implemented by a concrete subclass to handle actions necessary for restarting the navigation step. The default implementations calls OnStopStep() followed by OnStartStep().
 
itk::SmartPointer< mitk::DataStorage > GetDataStorage (bool throwNull=true)
 Returns the data storage set for the navigation step.
 
itk::SmartPointer< mitk::AbstractUltrasoundTrackerDeviceGetCombinedModality (bool throwNull=true)
 Returns the combined modality set for the navigation step.
 
itk::SmartPointer< mitk::DataNode > GetNamedDerivedNode (const char *name, const char *sourceName)
 Returns node with the given name and the given source node (parent) from the data storage.
 
itk::SmartPointer< mitk::DataNode > GetNamedDerivedNodeAndCreate (const char *name, const char *sourceName)
 Returns node with the given name and the given source node (parent) from the data storage. The node is created if no matching node was found.
 

Additional Inherited Members

- Public Types inherited from QmitkUSAbstractNavigationStep
enum  NavigationStepState { State_Stopped , State_Started , State_Active }
 
typedef std::vector< itk::SmartPointer< mitk::NavigationDataToNavigationDataFilter > > FilterVector
 
- Static Public Attributes inherited from QmitkUSAbstractNavigationStep
static const char * DATANAME_SETTINGS = "Settings"
 
static const char * DATANAME_IMAGESTREAM = "US Image Stream"
 
static const char * DATANAME_BASENODE = QmitkUSAbstractNavigationStep::DATANAME_IMAGESTREAM
 

Detailed Description

Navigation step for marking risk structures. The user can add risk structures by interacting with the render windows. The risk structures are organized in an embedded table view.

The risk structures are stored under DATANAME_BASENODE -> DATANAME_ZONES.

This step is ready for the next step directly after activating. All actions to be done in this step are optional.

Definition at line 67 of file QmitkUSNavigationStepCtUsRegistration.h.

Constructor & Destructor Documentation

◆ QmitkUSNavigationStepCtUsRegistration()

QmitkUSNavigationStepCtUsRegistration::QmitkUSNavigationStepCtUsRegistration ( QWidget * parent = nullptr)
explicit

Definition at line 47 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ ~QmitkUSNavigationStepCtUsRegistration()

QmitkUSNavigationStepCtUsRegistration::~QmitkUSNavigationStepCtUsRegistration ( )
override

Definition at line 60 of file QmitkUSNavigationStepCtUsRegistration.cpp.

Member Function Documentation

◆ ActualizeCtToUsRegistrationWidget

void QmitkUSNavigationStepCtUsRegistration::ActualizeCtToUsRegistrationWidget ( )
signal

◆ AddTransformedPointsToDataStorage()

void QmitkUSNavigationStepCtUsRegistration::AddTransformedPointsToDataStorage ( )
protected

Definition at line 642 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CalculateDistancesBetweenFiducials()

void QmitkUSNavigationStepCtUsRegistration::CalculateDistancesBetweenFiducials ( std::vector< std::vector< double > > & distanceVectorsFiducials)
protected

Definition at line 1172 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CalculateGroundTruthProtocolTRE()

void QmitkUSNavigationStepCtUsRegistration::CalculateGroundTruthProtocolTRE ( )
protected

Definition at line 785 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CalculateMeanFRE()

double QmitkUSNavigationStepCtUsRegistration::CalculateMeanFRE ( )
protected

Definition at line 761 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CalculateStandardDeviationOfFRE()

double QmitkUSNavigationStepCtUsRegistration::CalculateStandardDeviationOfFRE ( double meanFRE)
protected

Definition at line 772 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ ClassifyFiducialCandidates()

void QmitkUSNavigationStepCtUsRegistration::ClassifyFiducialCandidates ( )
protected

Definition at line 961 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CreateMarkerModelCoordinateSystemPointSet()

void QmitkUSNavigationStepCtUsRegistration::CreateMarkerModelCoordinateSystemPointSet ( )
protected

Definition at line 310 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CreatePointsToTransformForGroundTruthProtocol()

void QmitkUSNavigationStepCtUsRegistration::CreatePointsToTransformForGroundTruthProtocol ( )
protected

Definition at line 506 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ CreateQtPartControl()

void QmitkUSNavigationStepCtUsRegistration::CreateQtPartControl ( QWidget * parent)
protected

Definition at line 1490 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ DefineDataStorageImageFilter()

void QmitkUSNavigationStepCtUsRegistration::DefineDataStorageImageFilter ( )
protected

Definition at line 1465 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ EliminateFiducialCandidatesByEuclideanDistances()

bool QmitkUSNavigationStepCtUsRegistration::EliminateFiducialCandidatesByEuclideanDistances ( )
protected

Definition at line 888 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ EliminateTooSmallLabeledObjects()

void QmitkUSNavigationStepCtUsRegistration::EliminateTooSmallLabeledObjects ( ImageType::Pointer binaryImage)
protected

Definition at line 841 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FilterFloatingImage()

bool QmitkUSNavigationStepCtUsRegistration::FilterFloatingImage ( )
protected

Definition at line 173 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo1()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo1 ( std::vector< std::vector< double > > & distanceVectorsFiducials)
protected

Definition at line 1206 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo2And3()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo2And3 ( )
protected

Definition at line 1231 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo4()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo4 ( std::vector< std::vector< double > > & distanceVectorsFiducials)
protected

Definition at line 1320 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo5()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo5 ( )
protected

Definition at line 1349 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo6()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo6 ( )
protected

Definition at line 1378 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo7()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo7 ( )
protected

Definition at line 1407 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ FindFiducialNo8()

bool QmitkUSNavigationStepCtUsRegistration::FindFiducialNo8 ( )
protected

Definition at line 1436 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetCentroidsOfLabeledObjects()

void QmitkUSNavigationStepCtUsRegistration::GetCentroidsOfLabeledObjects ( )
protected

Definition at line 1099 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetCharacteristicDistanceAWithUpperMargin()

double QmitkUSNavigationStepCtUsRegistration::GetCharacteristicDistanceAWithUpperMargin ( )
protected

Definition at line 234 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetCharacteristicDistanceBWithLowerMargin()

double QmitkUSNavigationStepCtUsRegistration::GetCharacteristicDistanceBWithLowerMargin ( )
protected

Definition at line 253 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetCharacteristicDistanceBWithUpperMargin()

double QmitkUSNavigationStepCtUsRegistration::GetCharacteristicDistanceBWithUpperMargin ( )
protected

Definition at line 272 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetCursorPosition

void QmitkUSNavigationStepCtUsRegistration::GetCursorPosition ( )
signal

◆ GetFiducialVolume()

double QmitkUSNavigationStepCtUsRegistration::GetFiducialVolume ( double radius)
protected

Definition at line 168 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetFilter()

QmitkUSAbstractNavigationStep::FilterVector QmitkUSNavigationStepCtUsRegistration::GetFilter ( )
overridevirtual
Returns
a node displacement filter for the zone surfaces

Reimplemented from QmitkUSAbstractNavigationStep.

Definition at line 120 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetMinimalFiducialConfigurationDistance()

double QmitkUSNavigationStepCtUsRegistration::GetMinimalFiducialConfigurationDistance ( )
protected

Definition at line 291 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetTitle()

QString QmitkUSNavigationStepCtUsRegistration::GetTitle ( )
overridevirtual

Getter for the title of the navigation step. This title should be human readable and can be used to display the available steps and the currently active step to the user. The method has to be implemented by a concrete subclass.

Implements QmitkUSAbstractNavigationStep.

Definition at line 115 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ GetVoxelVolume()

double QmitkUSNavigationStepCtUsRegistration::GetVoxelVolume ( )
protected

Definition at line 157 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ InitializeImageFilters()

void QmitkUSNavigationStepCtUsRegistration::InitializeImageFilters ( )
protected

Definition at line 201 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ InitializePointsToTransformForGroundTruthProtocol()

void QmitkUSNavigationStepCtUsRegistration::InitializePointsToTransformForGroundTruthProtocol ( )
protected

Definition at line 462 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ NumerateFiducialMarks()

void QmitkUSNavigationStepCtUsRegistration::NumerateFiducialMarks ( )
protected

Definition at line 1119 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnActivateStep()

bool QmitkUSNavigationStepCtUsRegistration::OnActivateStep ( )
overridevirtual

Selects input for the node displacement filter and emits "ReadyForNextStep" signal. The input selection cannot be done earlier.

Returns

Implements QmitkUSAbstractNavigationStep.

Definition at line 83 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnActualizeSegmentationSurfacePointSetData

void QmitkUSNavigationStepCtUsRegistration::OnActualizeSegmentationSurfacePointSetData ( )
protectedslot

Definition at line 1806 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnAddCtImageClicked

void QmitkUSNavigationStepCtUsRegistration::OnAddCtImageClicked ( )
protectedslot

Definition at line 1910 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnCalculateCenter

void QmitkUSNavigationStepCtUsRegistration::OnCalculateCenter ( )
protectedslot

Definition at line 1866 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnCalculateTRE()

void QmitkUSNavigationStepCtUsRegistration::OnCalculateTRE ( mitk::Point3D centroidOfTargetInUSImage)

Definition at line 1845 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnDeactivateStep()

bool QmitkUSNavigationStepCtUsRegistration::OnDeactivateStep ( )
overridevirtual

Called when the navigation step gets deactivated (-> state started). This method may be implemented by a concrete subclass to handle actions necessary on deactivating the navigation step, which means switching to another step.

Returns
if the actions were done successfully; true on every call for the default implementation

Reimplemented from QmitkUSAbstractNavigationStep.

Definition at line 96 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnEvaluateGroundTruthFiducialLocalizationProtocol

void QmitkUSNavigationStepCtUsRegistration::OnEvaluateGroundTruthFiducialLocalizationProtocol ( )
protectedslot

Definition at line 1955 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnFinishStep()

bool QmitkUSNavigationStepCtUsRegistration::OnFinishStep ( )
overridevirtual

There is nothing to be done.

Returns
always true

Implements QmitkUSAbstractNavigationStep.

Definition at line 77 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnFloatingImageComboBoxSelectionChanged

void QmitkUSNavigationStepCtUsRegistration::OnFloatingImageComboBoxSelectionChanged ( const mitk::DataNode * node)
protectedslot

Definition at line 1524 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnFreeze

void QmitkUSNavigationStepCtUsRegistration::OnFreeze ( )
protectedslot

Definition at line 1785 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnGetCursorPosition

void QmitkUSNavigationStepCtUsRegistration::OnGetCursorPosition ( )
protectedslot

Definition at line 1840 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnLocalizeFiducials

void QmitkUSNavigationStepCtUsRegistration::OnLocalizeFiducials ( )
protectedslot

Definition at line 1685 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnRegisterMarkerToFloatingImageCS

void QmitkUSNavigationStepCtUsRegistration::OnRegisterMarkerToFloatingImageCS ( )
protectedslot

Definition at line 1561 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnRemoveCtImageClicked

void QmitkUSNavigationStepCtUsRegistration::OnRemoveCtImageClicked ( )
protectedslot

Definition at line 1941 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnSetCombinedModality()

void QmitkUSNavigationStepCtUsRegistration::OnSetCombinedModality ( )
overrideprotectedvirtual

Called every time SetCombinedModality() was called. This method may be implemented by a concrete subclass to handle this event. The default implementation does nothing.

Reimplemented from QmitkUSAbstractNavigationStep.

Definition at line 125 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnSettingsChanged()

void QmitkUSNavigationStepCtUsRegistration::OnSettingsChanged ( const itk::SmartPointer< mitk::DataNode > settingsNode)
overridevirtual

The property "settings.interaction-concept" is used.

Reimplemented from QmitkUSAbstractNavigationStep.

Definition at line 110 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnStartStep()

bool QmitkUSNavigationStepCtUsRegistration::OnStartStep ( )
overridevirtual

Initialization of the data storage nodes.

Returns
always true

Implements QmitkUSAbstractNavigationStep.

Definition at line 65 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnStopStep()

bool QmitkUSNavigationStepCtUsRegistration::OnStopStep ( )
overridevirtual

Resets widget and filter and removes nodes from the data storage.

Returns
always true

Reimplemented from QmitkUSAbstractNavigationStep.

Definition at line 71 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnUpdate()

void QmitkUSNavigationStepCtUsRegistration::OnUpdate ( )
overridevirtual

Updates the tracking validity status and the combined modality.

Implements QmitkUSAbstractNavigationStep.

Definition at line 102 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ OnVisualizeCTtoUSregistration

void QmitkUSNavigationStepCtUsRegistration::OnVisualizeCTtoUSregistration ( )
protectedslot

Definition at line 1722 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ SetFloatingImageGeometryInformation()

void QmitkUSNavigationStepCtUsRegistration::SetFloatingImageGeometryInformation ( mitk::Image * image)
protected

Definition at line 146 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ TransformPointsGroundTruthProtocol()

void QmitkUSNavigationStepCtUsRegistration::TransformPointsGroundTruthProtocol ( )
protected

Definition at line 572 of file QmitkUSNavigationStepCtUsRegistration.cpp.

◆ UnsetFloatingImageGeometry()

void QmitkUSNavigationStepCtUsRegistration::UnsetFloatingImageGeometry ( )
protected

Definition at line 135 of file QmitkUSNavigationStepCtUsRegistration.cpp.


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