VTK
vtkIterativeClosestPointTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIterativeClosestPointTransform.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
41 #ifndef vtkIterativeClosestPointTransform_h
42 #define vtkIterativeClosestPointTransform_h
43 
44 #include "vtkCommonDataModelModule.h" // For export macro
45 #include "vtkLinearTransform.h"
46 
47 #define VTK_ICP_MODE_RMS 0
48 #define VTK_ICP_MODE_AV 1
49 
50 class vtkCellLocator;
52 class vtkDataSet;
53 
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
63  void SetSource(vtkDataSet *source);
64  void SetTarget(vtkDataSet *target);
65  vtkGetObjectMacro(Source, vtkDataSet);
66  vtkGetObjectMacro(Target, vtkDataSet);
68 
70 
72  void SetLocator(vtkCellLocator *locator);
73  vtkGetObjectMacro(Locator,vtkCellLocator);
75 
77 
78  vtkSetMacro(MaximumNumberOfIterations, int);
79  vtkGetMacro(MaximumNumberOfIterations, int);
81 
83 
84  vtkGetMacro(NumberOfIterations, int);
86 
88 
90  vtkSetMacro(CheckMeanDistance, int);
91  vtkGetMacro(CheckMeanDistance, int);
92  vtkBooleanMacro(CheckMeanDistance, int);
94 
96 
101  vtkSetClampMacro(MeanDistanceMode,int,
103  vtkGetMacro(MeanDistanceMode,int);
105  {this->SetMeanDistanceMode(VTK_ICP_MODE_RMS);}
107  {this->SetMeanDistanceMode(VTK_ICP_MODE_AV);}
108  const char *GetMeanDistanceModeAsString();
110 
112 
115  vtkSetMacro(MaximumMeanDistance, double);
116  vtkGetMacro(MaximumMeanDistance, double);
118 
120 
121  vtkGetMacro(MeanDistance, double);
123 
125 
128  vtkSetMacro(MaximumNumberOfLandmarks, int);
129  vtkGetMacro(MaximumNumberOfLandmarks, int);
131 
133 
135  vtkSetMacro(StartByMatchingCentroids, int);
136  vtkGetMacro(StartByMatchingCentroids, int);
137  vtkBooleanMacro(StartByMatchingCentroids, int);
139 
141 
144  vtkGetObjectMacro(LandmarkTransform,vtkLandmarkTransform);
146 
149  void Inverse();
150 
153 
154 protected:
155 
157 
158  void ReleaseSource(void);
159  void ReleaseTarget(void);
161 
163  void ReleaseLocator(void);
164 
166  void CreateDefaultLocator(void);
167 
169  unsigned long int GetMTime();
170 
173 
174  void InternalUpdate();
175 
177  void InternalDeepCopy(vtkAbstractTransform *transform);
178 
188 
190  double MeanDistance;
192 private:
194  void operator=(const vtkIterativeClosestPointTransform&); // Not implemented.
195 };
196 
197 #endif
unsigned long GetMTime()
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual vtkAbstractTransform * MakeTransform()=0
#define VTK_ICP_MODE_RMS
octree-based spatial search object to quickly locate cells
a simple class to control print indentation
Definition: vtkIndent.h:38
void InternalDeepCopy(vtkAbstractTransform *transform)
a linear transform specified by two corresponding point sets
superclass for all geometric transformations
virtual void Inverse()=0
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Implementation of the ICP algorithm.
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKCOMMONDATAMODEL_EXPORT
abstract superclass for linear transformations