Thin-plate-spline-based landmark-based curved geometry. More...
#include <mitkPlaneLandmarkProjector.h>
Public Types | |
typedef PlaneLandmarkProjector | Self |
typedef LandmarkProjector | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual void | SetProjectionPlane (const mitk::PlaneGeometry *_arg) |
Set the plane-geometry to project the target-landmarks on. | |
virtual const mitk::PlaneGeometry * | GetProjectionPlane () |
Get the plane-geometry to project the target-landmarks on. | |
virtual void | ProjectLandmarks (const mitk::PointSet::DataType::PointsContainer *targetLandmarks) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
PlaneLandmarkProjector () | |
virtual | ~PlaneLandmarkProjector () |
virtual void | ComputeCompleteAbstractTransform () |
Compute the transform from parameter space to world space incorporating the given interpolating transform, which uses the landmarks. | |
Protected Attributes | |
mitk::PlaneGeometry::ConstPointer | m_ProjectionPlane |
Thin-plate-spline-based landmark-based curved geometry.
Definition at line 32 of file mitkPlaneLandmarkProjector.h.
typedef itk::SmartPointer<const Self> mitk::PlaneLandmarkProjector::ConstPointer |
Reimplemented from mitk::LandmarkProjector.
Definition at line 35 of file mitkPlaneLandmarkProjector.h.
typedef itk::SmartPointer<Self> mitk::PlaneLandmarkProjector::Pointer |
Reimplemented from mitk::LandmarkProjector.
Definition at line 35 of file mitkPlaneLandmarkProjector.h.
Reimplemented from mitk::LandmarkProjector.
Definition at line 35 of file mitkPlaneLandmarkProjector.h.
Reimplemented from mitk::LandmarkProjector.
Definition at line 35 of file mitkPlaneLandmarkProjector.h.
mitk::PlaneLandmarkProjector::PlaneLandmarkProjector | ( | ) | [protected] |
Definition at line 21 of file mitkPlaneLandmarkProjector.cpp.
: m_ProjectionPlane(NULL) { }
mitk::PlaneLandmarkProjector::~PlaneLandmarkProjector | ( | ) | [protected, virtual] |
Definition at line 25 of file mitkPlaneLandmarkProjector.cpp.
{ }
void mitk::PlaneLandmarkProjector::ComputeCompleteAbstractTransform | ( | ) | [protected, virtual] |
Compute the transform from parameter space to world space incorporating the given interpolating transform, which uses the landmarks.
Called after a new interpolating transform is set via SetInterpolatingAbstractTransform().
Implements mitk::LandmarkProjector.
Definition at line 29 of file mitkPlaneLandmarkProjector.cpp.
{ // we do not need any special pre- or post-transform, thus simply set // the InterpolatingAbstractTransform as m_CompleteAbstractTransform. m_CompleteAbstractTransform = GetInterpolatingAbstractTransform(); }
virtual const char* mitk::PlaneLandmarkProjector::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::LandmarkProjector.
virtual const mitk::PlaneGeometry* mitk::PlaneLandmarkProjector::GetProjectionPlane | ( | ) | [virtual] |
Get the plane-geometry to project the target-landmarks on.
static Pointer mitk::PlaneLandmarkProjector::New | ( | ) | [static] |
Referenced by mitk::PointSetToCurvedGeometryFilter::GenerateData().
void mitk::PlaneLandmarkProjector::ProjectLandmarks | ( | const mitk::PointSet::DataType::PointsContainer * | targetLandmarks ) | [virtual] |
Implements mitk::LandmarkProjector.
Definition at line 36 of file mitkPlaneLandmarkProjector.cpp.
{ if(m_ProjectionPlane.IsNull()) { itkExceptionMacro(<< "m_ProjectionPlane is not set."); } m_ParameterPlane = m_ProjectionPlane; m_ProjectedLandmarks->Initialize(); m_FinalTargetLandmarks = targetLandmarks; mitk::PointSet::DataType::PointsContainer::ConstIterator pointiterator, start = targetLandmarks->Begin(); mitk::PointSet::DataType::PointsContainer::ElementIdentifier id; mitk::Point3D point; mitk::Point3D projectedPoint; unsigned int size=targetLandmarks->Size(); m_ProjectedLandmarks->Reserve(size); for(id=0, pointiterator=start;id<size;++id, ++pointiterator) { point = pointiterator->Value(); m_ProjectionPlane->Project(point, projectedPoint); m_ProjectedLandmarks->InsertElement(id, projectedPoint); } }
virtual void mitk::PlaneLandmarkProjector::SetProjectionPlane | ( | const mitk::PlaneGeometry * | _arg ) | [virtual] |
Set the plane-geometry to project the target-landmarks on.
Definition at line 55 of file mitkPlaneLandmarkProjector.h.