Skip to content

Procrustes3D

Public Types

Name
typedef double RealType
typedef vnl_vector_fixed< double, 3 > PointType
typedef std::vector< PointType > ShapeType
typedef ShapeType::iterator ShapeIteratorType
typedef std::vector< ShapeType > ShapeListType
typedef ShapeListType::iterator ShapeListIteratorType
typedef std::vector< SimilarityTransform3D > SimilarityTransformListType
typedef SimilarityTransformListType::iterator SimilarityTransformListIteratorType
typedef vnl_matrix_fixed< double, 3+1, 3+1 > TransformMatrixType
typedef std::vector< TransformMatrixType > TransformMatrixListType
typedef TransformMatrixListType::iterator TransformMatrixIteratorType

Public Functions

Name
Procrustes3D()
Procrustes3D(bool do_scaling, bool do_rotation_translation)
bool GetScaling() const
void ScalingOn()
void ScalingOff()
bool GetRotationTranslation() const
void RotationTranslationOn()
void RotationTranslationOff()
void AlignShapes(SimilarityTransformListType & transforms, ShapeListType & shapes)
void RemoveTranslation(SimilarityTransformListType & transforms, ShapeListType & shapes)
void ConstructTransformMatrices(SimilarityTransformListType & transforms, TransformMatrixListType & transformMatrices)
void ConstructTransformMatrix(SimilarityTransform3D & transform, TransformMatrixType & transformMatrix)
void ComputeMeanShape(ShapeType & mean, ShapeListType & shapeList)
void ComputeCenterOfMass(ShapeType & shape, PointType & center)
void CenterShape(ShapeType & shape)
void ComputeCommonCenter(SimilarityTransformListType & transforms, PointType & center)
void AlignSourceToTarget(SimilarityTransform3D & transform, ShapeType & target, ShapeType & source)
int ComputeMedianShape(ShapeListType & shapeList)
void TransformShape(ShapeType & shape, SimilarityTransform3D & transform)
void TransformShapes(ShapeListType & shapes, SimilarityTransformListType & transforms)
RealType ComputeSumOfSquares(ShapeListType & shapes)

Public Types Documentation

typedef RealType

typedef double Procrustes3D::RealType;

typedef PointType

typedef vnl_vector_fixed<double, 3> Procrustes3D::PointType;

typedef ShapeType

typedef std::vector<PointType> Procrustes3D::ShapeType;

typedef ShapeIteratorType

typedef ShapeType::iterator Procrustes3D::ShapeIteratorType;

typedef ShapeListType

typedef std::vector<ShapeType> Procrustes3D::ShapeListType;

typedef ShapeListIteratorType

typedef ShapeListType::iterator Procrustes3D::ShapeListIteratorType;

typedef SimilarityTransformListType

typedef std::vector<SimilarityTransform3D> Procrustes3D::SimilarityTransformListType;

typedef SimilarityTransformListIteratorType

typedef SimilarityTransformListType::iterator Procrustes3D::SimilarityTransformListIteratorType;

typedef TransformMatrixType

typedef vnl_matrix_fixed<double, 3 + 1, 3 + 1> Procrustes3D::TransformMatrixType;

typedef TransformMatrixListType

typedef std::vector<TransformMatrixType> Procrustes3D::TransformMatrixListType;

typedef TransformMatrixIteratorType

typedef TransformMatrixListType::iterator Procrustes3D::TransformMatrixIteratorType;

Public Functions Documentation

function Procrustes3D

inline Procrustes3D()

function Procrustes3D

inline Procrustes3D(
    bool do_scaling,
    bool do_rotation_translation
)

function GetScaling

inline bool GetScaling() const

function ScalingOn

inline void ScalingOn()

function ScalingOff

inline void ScalingOff()

function GetRotationTranslation

inline bool GetRotationTranslation() const

function RotationTranslationOn

inline void RotationTranslationOn()

function RotationTranslationOff

inline void RotationTranslationOff()

function AlignShapes

void AlignShapes(
    SimilarityTransformListType & transforms,
    ShapeListType & shapes
)

function RemoveTranslation

void RemoveTranslation(
    SimilarityTransformListType & transforms,
    ShapeListType & shapes
)

function ConstructTransformMatrices

void ConstructTransformMatrices(
    SimilarityTransformListType & transforms,
    TransformMatrixListType & transformMatrices
)

function ConstructTransformMatrix

void ConstructTransformMatrix(
    SimilarityTransform3D & transform,
    TransformMatrixType & transformMatrix
)

function ComputeMeanShape

void ComputeMeanShape(
    ShapeType & mean,
    ShapeListType & shapeList
)

function ComputeCenterOfMass

void ComputeCenterOfMass(
    ShapeType & shape,
    PointType & center
)

function CenterShape

void CenterShape(
    ShapeType & shape
)

function ComputeCommonCenter

void ComputeCommonCenter(
    SimilarityTransformListType & transforms,
    PointType & center
)

function AlignSourceToTarget

void AlignSourceToTarget(
    SimilarityTransform3D & transform,
    ShapeType & target,
    ShapeType & source
)

function ComputeMedianShape

int ComputeMedianShape(
    ShapeListType & shapeList
)

function TransformShape

static void TransformShape(
    ShapeType & shape,
    SimilarityTransform3D & transform
)

function TransformShapes

static void TransformShapes(
    ShapeListType & shapes,
    SimilarityTransformListType & transforms
)

function ComputeSumOfSquares

static RealType ComputeSumOfSquares(
    ShapeListType & shapes
)

Updated on 2024-07-14 at 17:07:25 +0000