VTK
|
a linear transform specified by two corresponding point sets More...
#include <vtkLandmarkTransform.h>
Public Types | |
typedef vtkLinearTransform | Superclass |
![]() | |
typedef vtkHomogeneousTransform | Superclass |
![]() | |
typedef vtkAbstractTransform | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkLandmarkTransform * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Inverse () |
unsigned long | GetMTime () |
vtkAbstractTransform * | MakeTransform () |
void | SetSourceLandmarks (vtkPoints *points) |
void | SetTargetLandmarks (vtkPoints *points) |
virtual vtkPoints * | GetSourceLandmarks () |
virtual vtkPoints * | GetTargetLandmarks () |
virtual void | SetMode (int) |
void | SetModeToRigidBody () |
void | SetModeToSimilarity () |
void | SetModeToAffine () |
virtual int | GetMode () |
const char * | GetModeAsString () |
![]() | |
vtkLinearTransform * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | TransformPoints (vtkPoints *inPts, vtkPoints *outPts) |
virtual void | TransformNormals (vtkDataArray *inNms, vtkDataArray *outNms) |
virtual void | TransformVectors (vtkDataArray *inVrs, vtkDataArray *outVrs) |
void | TransformNormal (const float in[3], float out[3]) |
void | TransformNormal (const double in[3], double out[3]) |
double * | TransformNormal (double x, double y, double z) |
double * | TransformNormal (const double normal[3]) |
float * | TransformFloatNormal (float x, float y, float z) |
float * | TransformFloatNormal (const float normal[3]) |
double * | TransformDoubleNormal (double x, double y, double z) |
double * | TransformDoubleNormal (const double normal[3]) |
double * | TransformVector (double x, double y, double z) |
double * | TransformVector (const double normal[3]) |
void | TransformVector (const float in[3], float out[3]) |
void | TransformVector (const double in[3], double out[3]) |
float * | TransformFloatVector (float x, float y, float z) |
float * | TransformFloatVector (const float vec[3]) |
double * | TransformDoubleVector (double x, double y, double z) |
double * | TransformDoubleVector (const double vec[3]) |
void | TransformPointsNormalsVectors (vtkPoints *inPts, vtkPoints *outPts, vtkDataArray *inNms, vtkDataArray *outNms, vtkDataArray *inVrs, vtkDataArray *outVrs) |
vtkLinearTransform * | GetLinearInverse () |
void | InternalTransformPoint (const float in[3], float out[3]) |
void | InternalTransformPoint (const double in[3], double out[3]) |
virtual void | InternalTransformNormal (const float in[3], float out[3]) |
virtual void | InternalTransformNormal (const double in[3], double out[3]) |
virtual void | InternalTransformVector (const float in[3], float out[3]) |
virtual void | InternalTransformVector (const double in[3], double out[3]) |
void | InternalTransformDerivative (const float in[3], float out[3], float derivative[3][3]) |
void | InternalTransformDerivative (const double in[3], double out[3], double derivative[3][3]) |
![]() | |
vtkHomogeneousTransform * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | GetMatrix (vtkMatrix4x4 *m) |
vtkMatrix4x4 * | GetMatrix () |
vtkHomogeneousTransform * | GetHomogeneousInverse () |
![]() | |
vtkAbstractTransform * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
double * | TransformNormalAtPoint (const double point[3], const double normal[3]) |
double * | TransformVectorAtPoint (const double point[3], const double vector[3]) |
vtkAbstractTransform * | GetInverse () |
void | SetInverse (vtkAbstractTransform *transform) |
void | DeepCopy (vtkAbstractTransform *) |
void | Update () |
virtual int | CircuitCheck (vtkAbstractTransform *transform) |
unsigned long | GetMTime () |
virtual void | UnRegister (vtkObjectBase *O) |
void | TransformPoint (const float in[3], float out[3]) |
void | TransformPoint (const double in[3], double out[3]) |
double * | TransformPoint (double x, double y, double z) |
double * | TransformPoint (const double point[3]) |
float * | TransformFloatPoint (float x, float y, float z) |
float * | TransformFloatPoint (const float point[3]) |
double * | TransformDoublePoint (double x, double y, double z) |
double * | TransformDoublePoint (const double point[3]) |
void | TransformNormalAtPoint (const float point[3], const float in[3], float out[3]) |
void | TransformNormalAtPoint (const double point[3], const double in[3], double out[3]) |
double * | TransformDoubleNormalAtPoint (const double point[3], const double normal[3]) |
float * | TransformFloatNormalAtPoint (const float point[3], const float normal[3]) |
void | TransformVectorAtPoint (const float point[3], const float in[3], float out[3]) |
void | TransformVectorAtPoint (const double point[3], const double in[3], double out[3]) |
double * | TransformDoubleVectorAtPoint (const double point[3], const double vector[3]) |
float * | TransformFloatVectorAtPoint (const float point[3], const float vector[3]) |
Static Public Member Functions | |
static vtkLandmarkTransform * | New () |
static int | IsTypeOf (const char *type) |
static vtkLandmarkTransform * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkLinearTransform * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkHomogeneousTransform * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractTransform * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkLandmarkTransform () | |
~vtkLandmarkTransform () | |
void | InternalUpdate () |
void | InternalDeepCopy (vtkAbstractTransform *transform) |
![]() | |
vtkLinearTransform () | |
~vtkLinearTransform () | |
![]() | |
vtkHomogeneousTransform () | |
~vtkHomogeneousTransform () | |
![]() | |
vtkAbstractTransform () | |
~vtkAbstractTransform () | |
Protected Attributes | |
vtkPoints * | SourceLandmarks |
vtkPoints * | TargetLandmarks |
int | Mode |
![]() | |
vtkMatrix4x4 * | Matrix |
![]() | |
float | InternalFloatPoint [3] |
double | InternalDoublePoint [3] |
a linear transform specified by two corresponding point sets
A vtkLandmarkTransform is defined by two sets of landmarks, the transform computed gives the best fit mapping one onto the other, in a least squares sense. The indices are taken to correspond, so point 1 in the first set will get mapped close to point 1 in the second set, etc. Call SetSourceLandmarks and SetTargetLandmarks to specify the two sets of landmarks, ensure they have the same number of points.
Definition at line 41 of file vtkLandmarkTransform.h.
Definition at line 46 of file vtkLandmarkTransform.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Reimplemented from vtkLinearTransform.
|
static |
|
protectedvirtual |
Reimplemented from vtkLinearTransform.
vtkLandmarkTransform* vtkLandmarkTransform::NewInstance | ( | ) | const |
void vtkLandmarkTransform::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkLandmarkTransform::SetSourceLandmarks | ( | vtkPoints * | points | ) |
Specify the source and target landmark sets. The two sets must have the same number of points. If you add or change points in these objects, you must call Modified() on them or the transformation might not update.
void vtkLandmarkTransform::SetTargetLandmarks | ( | vtkPoints * | points | ) |
Specify the source and target landmark sets. The two sets must have the same number of points. If you add or change points in these objects, you must call Modified() on them or the transformation might not update.
|
virtual |
Specify the source and target landmark sets. The two sets must have the same number of points. If you add or change points in these objects, you must call Modified() on them or the transformation might not update.
|
virtual |
Specify the source and target landmark sets. The two sets must have the same number of points. If you add or change points in these objects, you must call Modified() on them or the transformation might not update.
|
virtual |
Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.
|
inline |
Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.
Definition at line 68 of file vtkLandmarkTransform.h.
|
inline |
Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.
Definition at line 69 of file vtkLandmarkTransform.h.
|
inline |
Set the number of degrees of freedom to constrain the solution to. Rigidbody (VTK_LANDMARK_RIGIDBODY): rotation and translation only. Similarity (VTK_LANDMARK_SIMILARITY): rotation, translation and isotropic scaling. Affine (VTK_LANDMARK_AFFINE): collinearity is preserved. Ratios of distances along a line are preserved. The default is similarity.
Definition at line 70 of file vtkLandmarkTransform.h.
|
virtual |
Get the current transformation mode.
|
inline |
Get the current transformation mode.
Definition at line 109 of file vtkLandmarkTransform.h.
|
virtual |
Invert the transformation. This is done by switching the source and target landmarks.
Implements vtkAbstractTransform.
unsigned long vtkLandmarkTransform::GetMTime | ( | ) |
Get the MTime.
|
virtual |
Make another transform of the same type.
Implements vtkAbstractTransform.
|
protectedvirtual |
Perform any subclass-specific Update.
Reimplemented from vtkAbstractTransform.
|
protectedvirtual |
This method does no type checking, use DeepCopy instead.
Reimplemented from vtkHomogeneousTransform.
|
protected |
Definition at line 99 of file vtkLandmarkTransform.h.
|
protected |
Definition at line 100 of file vtkLandmarkTransform.h.
|
protected |
Definition at line 102 of file vtkLandmarkTransform.h.