VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkIterativeClosestPointTransform Class Reference

Implementation of the ICP algorithm. More...

#include <vtkIterativeClosestPointTransform.h>

Inheritance diagram for vtkIterativeClosestPointTransform:
Inheritance graph
[legend]
Collaboration diagram for vtkIterativeClosestPointTransform:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkLinearTransform Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkIterativeClosestPointTransformNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void Inverse ()
vtkAbstractTransformMakeTransform ()
void SetSource (vtkDataSet *source)
void SetTarget (vtkDataSet *target)
virtual vtkDataSetGetSource ()
virtual vtkDataSetGetTarget ()
void SetLocator (vtkCellLocator *locator)
virtual vtkCellLocatorGetLocator ()
virtual void SetMaximumNumberOfIterations (int)
virtual int GetMaximumNumberOfIterations ()
virtual int GetNumberOfIterations ()
virtual void SetCheckMeanDistance (int)
virtual int GetCheckMeanDistance ()
virtual void CheckMeanDistanceOn ()
virtual void CheckMeanDistanceOff ()
virtual void SetMeanDistanceMode (int)
virtual int GetMeanDistanceMode ()
void SetMeanDistanceModeToRMS ()
void SetMeanDistanceModeToAbsoluteValue ()
const char * GetMeanDistanceModeAsString ()
virtual void SetMaximumMeanDistance (double)
virtual double GetMaximumMeanDistance ()
virtual double GetMeanDistance ()
virtual void SetMaximumNumberOfLandmarks (int)
virtual int GetMaximumNumberOfLandmarks ()
virtual void SetStartByMatchingCentroids (int)
virtual int GetStartByMatchingCentroids ()
virtual void StartByMatchingCentroidsOn ()
virtual void StartByMatchingCentroidsOff ()
virtual vtkLandmarkTransformGetLandmarkTransform ()

Static Public Member Functions

static
vtkIterativeClosestPointTransform
New ()
static int IsTypeOf (const char *type)
static
vtkIterativeClosestPointTransform
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
void ReleaseLocator (void)
void CreateDefaultLocator (void)
unsigned long int GetMTime ()
 vtkIterativeClosestPointTransform ()
 ~vtkIterativeClosestPointTransform ()
void InternalUpdate ()
void InternalDeepCopy (vtkAbstractTransform *transform)
void ReleaseSource (void)
void ReleaseTarget (void)

Protected Attributes

vtkDataSetSource
vtkDataSetTarget
vtkCellLocatorLocator
int MaximumNumberOfIterations
int CheckMeanDistance
int MeanDistanceMode
double MaximumMeanDistance
int MaximumNumberOfLandmarks
int StartByMatchingCentroids
int NumberOfIterations
double MeanDistance
vtkLandmarkTransformLandmarkTransform

Detailed Description

Implementation of the ICP algorithm.

Match two surfaces using the iterative closest point (ICP) algorithm. The core of the algorithm is to match each vertex in one surface with the closest surface point on the other, then apply the transformation that modify one surface to best match the other (in a least square sense). This has to be iterated to get proper convergence of the surfaces.

Attention:
Use vtkTransformPolyDataFilter to apply the resulting ICP transform to your data. You might also set it to your actor's user transform.
This class makes use of vtkLandmarkTransform internally to compute the best fit. Use the GetLandmarkTransform member to get a pointer to that transform and set its parameters. You might, for example, constrain the number of degrees of freedom of the solution (i.e. rigid body, similarity, etc.) by checking the vtkLandmarkTransform documentation for its SetMode member.
See also:
vtkLandmarkTransform
Tests:
vtkIterativeClosestPointTransform (Tests)

Definition at line 54 of file vtkIterativeClosestPointTransform.h.


Member Typedef Documentation

Reimplemented from vtkLinearTransform.

Definition at line 58 of file vtkIterativeClosestPointTransform.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkIterativeClosestPointTransform::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLinearTransform.

virtual int vtkIterativeClosestPointTransform::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLinearTransform.

Reimplemented from vtkLinearTransform.

Reimplemented from vtkLinearTransform.

Reimplemented from vtkLinearTransform.

void vtkIterativeClosestPointTransform::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkLinearTransform.

Specify the source and target data sets.

Specify the source and target data sets.

Specify the source and target data sets.

Specify the source and target data sets.

Set/Get a spatial locator for speeding up the search process. An instance of vtkCellLocator is used by default.

Set/Get a spatial locator for speeding up the search process. An instance of vtkCellLocator is used by default.

Set/Get the maximum number of iterations. Default is 50.

Set/Get the maximum number of iterations. Default is 50.

Get the number of iterations since the last update

Force the algorithm to check the mean distance between two iterations. Default is Off.

Force the algorithm to check the mean distance between two iterations. Default is Off.

Force the algorithm to check the mean distance between two iterations. Default is Off.

Force the algorithm to check the mean distance between two iterations. Default is Off.

Specify the mean distance mode. This mode expresses how the mean distance is computed. The RMS mode is the square root of the average of the sum of squares of the closest point distances. The Absolute Value mode is the mean of the sum of absolute values of the closest point distances. The default is VTK_ICP_MODE_RMS

Specify the mean distance mode. This mode expresses how the mean distance is computed. The RMS mode is the square root of the average of the sum of squares of the closest point distances. The Absolute Value mode is the mean of the sum of absolute values of the closest point distances. The default is VTK_ICP_MODE_RMS

Specify the mean distance mode. This mode expresses how the mean distance is computed. The RMS mode is the square root of the average of the sum of squares of the closest point distances. The Absolute Value mode is the mean of the sum of absolute values of the closest point distances. The default is VTK_ICP_MODE_RMS

Definition at line 104 of file vtkIterativeClosestPointTransform.h.

Specify the mean distance mode. This mode expresses how the mean distance is computed. The RMS mode is the square root of the average of the sum of squares of the closest point distances. The Absolute Value mode is the mean of the sum of absolute values of the closest point distances. The default is VTK_ICP_MODE_RMS

Definition at line 106 of file vtkIterativeClosestPointTransform.h.

Specify the mean distance mode. This mode expresses how the mean distance is computed. The RMS mode is the square root of the average of the sum of squares of the closest point distances. The Absolute Value mode is the mean of the sum of absolute values of the closest point distances. The default is VTK_ICP_MODE_RMS

Set/Get the maximum mean distance between two iteration. If the mean distance is lower than this, the convergence stops. The default is 0.01.

Set/Get the maximum mean distance between two iteration. If the mean distance is lower than this, the convergence stops. The default is 0.01.

Get the mean distance between the last two iterations.

Set/Get the maximum number of landmarks sampled in your dataset. If your dataset is dense, then you will typically not need all the points to compute the ICP transform. The default is 200.

Set/Get the maximum number of landmarks sampled in your dataset. If your dataset is dense, then you will typically not need all the points to compute the ICP transform. The default is 200.

Starts the process by translating source centroid to target centroid. The default is Off.

Starts the process by translating source centroid to target centroid. The default is Off.

Starts the process by translating source centroid to target centroid. The default is Off.

Starts the process by translating source centroid to target centroid. The default is Off.

Get the internal landmark transform. Use it to constrain the number of degrees of freedom of the solution (i.e. rigid body, similarity, etc.).

Invert the transformation. This is done by switching the source and target.

Implements vtkAbstractTransform.

Make another transform of the same type.

Implements vtkAbstractTransform.

Release source and target

Release source and target

Release locator

Create default locator. Used to create one when none is specified.

unsigned long int vtkIterativeClosestPointTransform::GetMTime ( ) [protected, virtual]

Get the MTime of this object also considering the locator.

Reimplemented from vtkAbstractTransform.

Perform any subclass-specific Update.

Reimplemented from vtkAbstractTransform.

This method does no type checking, use DeepCopy instead.

Reimplemented from vtkHomogeneousTransform.


Member Data Documentation

Definition at line 179 of file vtkIterativeClosestPointTransform.h.

Definition at line 180 of file vtkIterativeClosestPointTransform.h.

Definition at line 181 of file vtkIterativeClosestPointTransform.h.

Definition at line 182 of file vtkIterativeClosestPointTransform.h.

Definition at line 183 of file vtkIterativeClosestPointTransform.h.

Definition at line 184 of file vtkIterativeClosestPointTransform.h.

Definition at line 185 of file vtkIterativeClosestPointTransform.h.

Definition at line 186 of file vtkIterativeClosestPointTransform.h.

Definition at line 187 of file vtkIterativeClosestPointTransform.h.

Definition at line 189 of file vtkIterativeClosestPointTransform.h.

Definition at line 190 of file vtkIterativeClosestPointTransform.h.

Definition at line 191 of file vtkIterativeClosestPointTransform.h.


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