NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | List of all members
niftk::PointBasedRegistration Class Reference

Class to implement point based registration of two point sets. More...

Inheritance diagram for niftk::PointBasedRegistration:
Inheritance graph
[legend]
Collaboration diagram for niftk::PointBasedRegistration:
Collaboration graph
[legend]

Public Member Functions

 mitkClassMacroItkParent (PointBasedRegistration, itk::Object) static Pointer New()
 
virtual void SetUsePointIDToMatchPoints (bool _arg)
 If true, will try to filter matching pairs of points using the mitk::PointSet PointID feature. More...
 
virtual bool GetUsePointIDToMatchPoints ()
 
virtual void SetUseICPInitialisation (bool _arg)
 If true, points are assumed to be unordered, and so a closest point search is used. More...
 
virtual bool GetUseICPInitialisation ()
 
virtual void SetStripNaNFromInput (bool _arg)
 If true, both fixed and moving points are checked for NaN values prior to matching. More...
 
virtual bool GetStripNaNFromInput ()
 
double Update (const mitk::PointSet::Pointer fixedPoints, const mitk::PointSet::Pointer movingPoints, vtkMatrix4x4 &outputMatrix) const
 Main method to calculate the point based registration. More...
 

Protected Member Functions

 PointBasedRegistration ()
 
virtual ~PointBasedRegistration ()
 
 PointBasedRegistration (const PointBasedRegistration &)
 
PointBasedRegistrationoperator= (const PointBasedRegistration &)
 

Detailed Description

Class to implement point based registration of two point sets.

This class is called from both PointRegView and TagTrackerView. This is two different use-cases, and the usage is quite different. The code is kept here in one class for convenience to the user.

IMPORTANT: Must throw mitk::Exception or subclasses for all errors.

Constructor & Destructor Documentation

niftk::PointBasedRegistration::PointBasedRegistration ( )
protected
niftk::PointBasedRegistration::~PointBasedRegistration ( )
protectedvirtual
niftk::PointBasedRegistration::PointBasedRegistration ( const PointBasedRegistration )
protected

Member Function Documentation

virtual bool niftk::PointBasedRegistration::GetStripNaNFromInput ( )
virtual
virtual bool niftk::PointBasedRegistration::GetUseICPInitialisation ( )
virtual
virtual bool niftk::PointBasedRegistration::GetUsePointIDToMatchPoints ( )
virtual
niftk::PointBasedRegistration::mitkClassMacroItkParent ( PointBasedRegistration  ,
itk::Object   
)
PointBasedRegistration& niftk::PointBasedRegistration::operator= ( const PointBasedRegistration )
protected
virtual void niftk::PointBasedRegistration::SetStripNaNFromInput ( bool  _arg)
virtual

If true, both fixed and moving points are checked for NaN values prior to matching.

virtual void niftk::PointBasedRegistration::SetUseICPInitialisation ( bool  _arg)
virtual

If true, points are assumed to be unordered, and so a closest point search is used.

virtual void niftk::PointBasedRegistration::SetUsePointIDToMatchPoints ( bool  _arg)
virtual

If true, will try to filter matching pairs of points using the mitk::PointSet PointID feature.

double niftk::PointBasedRegistration::Update ( const mitk::PointSet::Pointer  fixedPoints,
const mitk::PointSet::Pointer  movingPoints,
vtkMatrix4x4 &  outputMatrix 
) const

Main method to calculate the point based registration.

Parameters
In]fixedPoints a point set
In]movingPoints a point set
Out]outputMatrix the transformation to transform the moving point set into the coordinate system of the fixed point set.
Returns
fiducial registration error

The documentation for this class was generated from the following files: