18 ,m_QuaternionTransform(nullptr)
19 ,m_SourceLandmarksFromNavigationDatas(nullptr)
20 ,m_TargetLandmarksFromNavigationDatas(nullptr)
42 if(sourceNavigationDatas.empty())
48 if(sourceNavigationDatas.size() < 3)
51 for(
unsigned int i=0; i < sourceNavigationDatas.size(); ++i){
52 mitk::Point3D point = sourceNavigationDatas.at(i)->GetPosition();
68 if(targetNavigationDatas.empty())
74 if(targetNavigationDatas.size() < 3)
77 for(
unsigned int i=0; i < targetNavigationDatas.size(); ++i){
78 mitk::Point3D point = targetNavigationDatas.at(i)->GetPosition();
124 return landmarkContainer;
126 for(
unsigned int i=0; i < navigationDatas.size(); ++i)
143 mitk::NavigationData::Pointer nd = navigationDatas.at(i);
149 vnl_quaternion<double>
const vnlQuatIn(quatIn.x(), quatIn.y(), quatIn.z(), quatIn.r());
159 pointA[0] += nd->GetPosition()[0];
160 pointA[1] += nd->GetPosition()[1];
161 pointA[2] += nd->GetPosition()[2];
163 pointB[0] += nd->GetPosition()[0];
164 pointB[1] += nd->GetPosition()[1];
165 pointB[2] += nd->GetPosition()[2];
167 pointC[0] += nd->GetPosition()[0];
168 pointC[1] += nd->GetPosition()[1];
169 pointC[2] += nd->GetPosition()[2];
172 int currSize = landmarkContainer->GetSize();
174 landmarkContainer->InsertPoint(currSize++,pointA);
175 landmarkContainer->InsertPoint(currSize++,pointB);
176 landmarkContainer->InsertPoint(currSize++,pointC);
179 return landmarkContainer;
DataCollection - Class to facilitate loading/accessing structured data.
mitk::Quaternion OrientationType
Type that holds the orientation part of the tracking data.