MITK-IGT
IGT Extension of MITK
|
QmitkUltrasoundCalibration. More...
#include <QmitkUltrasoundCalibration.h>
Signals | |
void | NewConnectionSignal () |
used for thread separation, the worker thread must not call OnNewConnection directly. QT signals are thread safe and separate the threads | |
Public Member Functions | |
QmitkUltrasoundCalibration () | |
~QmitkUltrasoundCalibration () override | |
void | CreateQtPartControl (QWidget *parent) override |
void | OnUSDepthChanged (const std::string &, const std::string &) |
Static Public Attributes | |
static const std::string | VIEW_ID = "org.mitk.views.ultrasoundcalibration" |
Protected Slots | |
void | OnTabSwitch (int index) |
Triggered, whenever the user switches Tabs. | |
void | OnDeviceSelected () |
Triggered, when the user has clicked "select Devices". | |
void | OnDeviceDeselected () |
void | OnAddCalibPoint () |
Triggered, when the user clicks "Add Point". | |
void | OnCalibration () |
Triggered, when the user clicks "Calibrate". | |
void | OnAddEvalTargetPoint () |
Triggered, when the user clicks "Add Target Points". | |
void | OnAddEvalProjectedPoint () |
Triggered, when the user clicks "Add Point". | |
void | OnSaveEvaluation () |
Triggered when the user clicks "Save Results" in the Evaluation tab. | |
void | OnSaveCalibration () |
Triggered when the user clicks "Save Calibration" in the Calibration tab. | |
void | OnReset () |
Triggered when the user clicks "Run Next Round". Also used as a reset mechanism. | |
void | Update () |
Triggered in regular intervals by a timer, when live view is enabled. | |
void | SwitchFreeze () |
Freezes or unfreezes the image. | |
void | OnStartCalibrationProcess () |
void | OnStartPlusCalibration () |
Method to use the PLUS-Toolkoit for Calibration of EchoTrack. | |
void | OnStopPlusCalibration () |
void | OnStartStreaming () |
void | OnNewConnection () |
void | OnGetPlusCalibration () |
void | ProcessPlusCalibration (igtl::Matrix4x4 &imageToTracker) |
void | OnStreamingTimerTimeout () |
void | OnStopCalibrationProcess () |
void | OnAddCurrentTipPositionToReferencePoints () |
void | OnStartVerification () |
void | OnAddCurrentTipPositionForVerification () |
void | OnDeviceServiceEvent (const ctkServiceEvent event) |
void | OnFreezeClicked () |
void | OnAddSpacingPoint () |
void | OnCalculateSpacing () |
void | OnLoadPhantomConfiguration () |
void | OnMatchAnnotationToPhantomConfiguration () |
void | OnMovePhantomAnnotationsUp () |
void | OnMovePhantomAnnotationsDown () |
void | OnMovePhantomAnnotationsLeft () |
void | OnMovePhantomAnnotationsRight () |
void | OnRotatePhantomAnnotationsRight () |
void | OnRotatePhantomAnnotationsLeft () |
void | OnPhantomCalibPointsChanged () |
void | OnPhantomBasedCalibration () |
Protected Member Functions | |
void | SetFocus () override |
void | OnSelectionChanged (berry::IWorkbenchPart::Pointer source, const QList< mitk::DataNode::Pointer > &nodes) override |
void | UpdatePhantomAnnotationPointVisualization (int index=-1) |
void | TranslatePhantomAnnotations (double tx, double ty, double tz) |
translate the annotated image feature m_CalibPoints image by the specified translation vector | |
void | RotatePhantomAnnotations (double angle) |
rotate the annotated image feature m_CalibPoints image by the specified angle | |
void | ShowNeedlePath () |
Internal function that activates display of the needle path. | |
void | ClearTemporaryMembers () |
Clears all member attributes which are holding intermediate results for the calibration. | |
void | OnPlusConnected () |
vtkSmartPointer< vtkPolyData > | ConvertPointSetToVtkPolyData (mitk::PointSet::Pointer PointSet) |
double | ComputeFRE (mitk::PointSet::Pointer imageFiducials, mitk::PointSet::Pointer realWorldFiducials, vtkSmartPointer< vtkLandmarkTransform > transform=nullptr) |
void | ApplyTransformToPointSet (mitk::PointSet::Pointer pointSet, vtkSmartPointer< vtkAbstractTransform > transform) |
Protected Attributes | |
Ui::QmitkUltrasoundCalibrationControls | m_Controls |
mitk::AbstractUltrasoundTrackerDevice::Pointer | m_CombinedModality |
The combined modality used for imaging and tracking. | |
mitk::NavigationDataSource::Pointer | m_Tracker |
NavigationDataSource used for tracking data. This will be gotten by the combined modality. | |
QTimer * | m_Timer |
mitk::DataNode::Pointer | m_Node |
mitk::DataNode::Pointer | m_CalibNode |
mitk::DataNode::Pointer | m_WorldNode |
mitk::IGTLServer::Pointer | m_USServer |
mitk::IGTLMessageProvider::Pointer | m_USMessageProvider |
mitk::ImageToIGTLMessageFilter::Pointer | m_USImageToIGTLMessageFilter |
mitk::IGTLServer::Pointer | m_TrackingServer |
mitk::IGTLMessageProvider::Pointer | m_TrackingMessageProvider |
mitk::NavigationDataToIGTLMessageFilter::Pointer | m_TrackingToIGTLMessageFilter |
mitk::IGTLClient::Pointer | m_TransformClient |
mitk::IGTLDeviceSource::Pointer | m_TransformDeviceSource |
QTimer * | m_StreamingTimer |
unsigned long | m_NewConnectionObserverTag |
mitk::Image::Pointer | m_Image |
The current Ultrasound Image. | |
mitk::Point3D | m_FreezePoint |
Current point when the image was last frozen. | |
mitk::PointSet::Pointer | m_CalibPointsImage |
Pointset containing all tool points. | |
mitk::PointSet::Pointer | m_CalibPointsTool |
Pointset containing corresponding points on the image. | |
mitk::PointSet::Pointer | m_PhantomConfigurationPointSet |
pointset holding the feature position of the phantom in tool coordinates | |
mitk::PointSet::Pointer | m_EvalPointsProjected |
Pointset containing Projected Points (aka "where we thought the needle was gonna land") | |
mitk::PointSet::Pointer | m_EvalPointsImage |
Pointset containing the evaluated points on the image. | |
mitk::PointSet::Pointer | m_EvalPointsTool |
Pointset containing tracked evaluation points. | |
mitk::PointSet::Pointer | m_VerificationReferencePoints |
Pointset containing tracked evaluation points. | |
mitk::DataNode::Pointer | m_VerificationReferencePointsDataNode |
int | m_currentPoint |
std::vector< mitk::Point3D > | m_allReferencePoints |
std::vector< double > | m_allErrors |
mitk::NeedleProjectionFilter::Pointer | m_NeedleProjectionFilter |
Creates a Pointset that projects the needle's path. | |
int | m_CalibPointsCount |
Total number of calibration points set. | |
QString | m_CurrentDepth |
mitk::PointSetDifferenceStatisticsCalculator::Pointer | m_ProjectionStatistics |
StatisticsRegarding Projection Accuracy. (Compares m_EvalPointsProjected to m_EvalPointsImage) | |
mitk::PointSetDifferenceStatisticsCalculator::Pointer | m_EvaluationStatistics |
StatisticsRegarding Evaluation Accuracy. (Compares m_EvalPointsTool to m_EvalPointsImage) | |
mitk::PointSetDifferenceStatisticsCalculator::Pointer | m_CalibrationStatistics |
StatisticsRegarding Calibration Accuracy. (Compares m_CalibPointsTool to a transformed copy of m_CalibPointsImage). | |
mitk::AffineTransform3D::Pointer | m_Transformation |
Result of the Calibration. | |
mitk::PointSet::Pointer | m_SpacingPoints |
mitk::DataNode::Pointer | m_SpacingNode |
int | m_SpacingPointsCount |
${}
Definition at line 44 of file QmitkUltrasoundCalibration.h.
QmitkUltrasoundCalibration::QmitkUltrasoundCalibration | ( | ) |
Definition at line 61 of file QmitkUltrasoundCalibration.cpp.
|
override |
Definition at line 77 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Definition at line 1311 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Clears all member attributes which are holding intermediate results for the calibration.
Definition at line 1249 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Definition at line 1287 of file QmitkUltrasoundCalibration.cpp.
|
protected |
This method is copied from PointSetModifier which is part of MBI. It should be replaced by external method call as soon as this functionality will be available in MITK.
Definition at line 1266 of file QmitkUltrasoundCalibration.cpp.
|
override |
Definition at line 110 of file QmitkUltrasoundCalibration.cpp.
|
signal |
used for thread separation, the worker thread must not call OnNewConnection directly. QT signals are thread safe and separate the threads
|
protectedslot |
Triggered, when the user clicks "Add Point".
Definition at line 718 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 331 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 301 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered, when the user clicks "Add Point".
Adds a projected point to the projected point evaluation set.
Definition at line 1063 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered, when the user clicks "Add Target Points".
Adds an image point and an tracking point to their respective evaluation pointsets
Definition at line 1033 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1347 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1368 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered, when the user clicks "Calibrate".
Definition at line 733 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 286 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered, when the user has clicked "select Devices".
Definition at line 271 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 700 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1323 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
*brief Get the Calibration from the PLUS-Toolkit once Calibration with fCal is done
Definition at line 584 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 840 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 941 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 995 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1000 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1005 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 990 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 562 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1026 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 887 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Definition at line 557 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered when the user clicks "Run Next Round". Also used as a reset mechanism.
Definition at line 1133 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1018 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 1010 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered when the user clicks "Save Calibration" in the Calibration tab.
Definition at line 1103 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered when the user clicks "Save Results" in the Evaluation tab.
Definition at line 1073 of file QmitkUltrasoundCalibration.cpp.
|
overrideprotected |
Definition at line 252 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 375 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Method to use the PLUS-Toolkoit for Calibration of EchoTrack.
Definition at line 439 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
\ brief Starts the Streaming of USImage and Navigation Data when PLUS is connected
Definition at line 575 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 316 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 682 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 520 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Definition at line 569 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered, whenever the user switches Tabs.
Definition at line 257 of file QmitkUltrasoundCalibration.cpp.
void QmitkUltrasoundCalibration::OnUSDepthChanged | ( | const std::string & | key, |
const std::string & | ) |
Definition at line 1392 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
*brief Convert the received igtl::Matrix into an mitk::AffineTransform3D which can be used to calibrate the CombinedModality
Definition at line 653 of file QmitkUltrasoundCalibration.cpp.
|
protected |
rotate the annotated image feature m_CalibPoints image by the specified angle
Definition at line 976 of file QmitkUltrasoundCalibration.cpp.
|
overrideprotected |
Definition at line 105 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Internal function that activates display of the needle path.
Definition at line 1232 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Freezes or unfreezes the image.
Definition at line 1184 of file QmitkUltrasoundCalibration.cpp.
|
protected |
translate the annotated image feature m_CalibPoints image by the specified translation vector
Definition at line 962 of file QmitkUltrasoundCalibration.cpp.
|
protectedslot |
Triggered in regular intervals by a timer, when live view is enabled.
Definition at line 1156 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Definition at line 918 of file QmitkUltrasoundCalibration.cpp.
|
protected |
Definition at line 326 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 325 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 267 of file QmitkUltrasoundCalibration.h.
|
protected |
Total number of calibration points set.
Definition at line 335 of file QmitkUltrasoundCalibration.h.
|
protected |
Pointset containing all tool points.
Definition at line 298 of file QmitkUltrasoundCalibration.h.
|
protected |
Pointset containing corresponding points on the image.
Definition at line 302 of file QmitkUltrasoundCalibration.h.
|
protected |
StatisticsRegarding Calibration Accuracy. (Compares m_CalibPointsTool to a transformed copy of m_CalibPointsImage).
Definition at line 353 of file QmitkUltrasoundCalibration.h.
|
protected |
The combined modality used for imaging and tracking.
Definition at line 256 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 239 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 337 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 324 of file QmitkUltrasoundCalibration.h.
|
protected |
Pointset containing the evaluated points on the image.
Definition at line 312 of file QmitkUltrasoundCalibration.h.
|
protected |
Pointset containing Projected Points (aka "where we thought the needle was gonna land")
Definition at line 308 of file QmitkUltrasoundCalibration.h.
|
protected |
Pointset containing tracked evaluation points.
Definition at line 316 of file QmitkUltrasoundCalibration.h.
|
protected |
StatisticsRegarding Evaluation Accuracy. (Compares m_EvalPointsTool to m_EvalPointsImage)
Definition at line 348 of file QmitkUltrasoundCalibration.h.
|
protected |
Current point when the image was last frozen.
Definition at line 293 of file QmitkUltrasoundCalibration.h.
|
protected |
The current Ultrasound Image.
Definition at line 289 of file QmitkUltrasoundCalibration.h.
|
protected |
Creates a Pointset that projects the needle's path.
Definition at line 331 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 284 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 266 of file QmitkUltrasoundCalibration.h.
|
protected |
pointset holding the feature position of the phantom in tool coordinates
Definition at line 304 of file QmitkUltrasoundCalibration.h.
|
protected |
StatisticsRegarding Projection Accuracy. (Compares m_EvalPointsProjected to m_EvalPointsImage)
Definition at line 343 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 373 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 372 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 374 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 282 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 264 of file QmitkUltrasoundCalibration.h.
|
protected |
NavigationDataSource used for tracking data. This will be gotten by the combined modality.
Definition at line 262 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 276 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 275 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 277 of file QmitkUltrasoundCalibration.h.
|
protected |
Result of the Calibration.
Definition at line 358 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 279 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 280 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 273 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 272 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 271 of file QmitkUltrasoundCalibration.h.
|
protected |
Pointset containing tracked evaluation points.
Definition at line 321 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 322 of file QmitkUltrasoundCalibration.h.
|
protected |
Definition at line 268 of file QmitkUltrasoundCalibration.h.
|
static |
Definition at line 52 of file QmitkUltrasoundCalibration.h.