31 m_CompleteAbstractTransform = GetInterpolatingAbstractTransform();
36 if (m_ProjectionPlane.IsNull())
38 itkExceptionMacro(<<
"m_ProjectionPlane is not set.");
41 m_ParameterPlane = m_ProjectionPlane;
43 m_ProjectedLandmarks->Initialize();
44 m_FinalTargetLandmarks = targetLandmarks;
46 mitk::PointSet::DataType::PointsContainer::ConstIterator pointiterator, start = targetLandmarks->Begin();
47 mitk::PointSet::DataType::PointsContainer::ElementIdentifier id;
52 unsigned int size = targetLandmarks->Size();
53 m_ProjectedLandmarks->Reserve(size);
54 for (
id = 0, pointiterator = start;
id < size; ++id, ++pointiterator)
56 point = pointiterator->Value();
57 m_ProjectionPlane->Project(point, projectedPoint);
59 m_ProjectedLandmarks->InsertElement(
id, projectedPoint);
virtual void ComputeCompleteAbstractTransform() override
Compute the transform from parameter space to world space incorporating the given interpolating trans...
virtual ~PlaneLandmarkProjector()
virtual void ProjectLandmarks(const mitk::PointSet::DataType::PointsContainer *targetLandmarks) override