|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
14 #include <QVBoxLayout>
15 #include <QPushButton>
16 #include <QTableWidget>
17 #include <QTableWidgetItem>
18 #include <QHeaderView>
22 #include <vtkDoubleArray.h>
23 #include <vtkImageData.h>
37 LandmarkImage2ImageRegistrationWidget::LandmarkImage2ImageRegistrationWidget(
RegServicesPtr services,
38 QWidget* parent, QString objectName, QString windowTitle) :
61 QHBoxLayout* regLayout =
new QHBoxLayout;
84 "<h3>Landmark based image to image registration.</h3>"
85 "<p>Register moving image to fixed image. </p>"
107 ImagePtr moving = boost::dynamic_pointer_cast<Image>(
mServices->registration()->getMovingData());
110 return moving->getLandmarks()->getLandmarks();
126 if (!
mServices->registration()->getMovingData())
127 return Transform3D::Identity();
128 return mServices->registration()->getMovingData()->get_rMd();
133 ImagePtr image = boost::dynamic_pointer_cast<Image>(
mServices->registration()->getMovingData());
136 image->getLandmarks()->setLandmark(
Landmark(uid, p_target));
144 return image->getName();
Namespace for all CustusX production code.
std::map< QString, class Landmark > LandmarkMap
One landmark, or fiducial, coordinate.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class RegServices > RegServicesPtr
void setValue(const QString &key, const QVariant &value)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Settings * settings()
Shortcut for accessing the settings instance.