Skip to content

itk::ContourDomain

Inherits from itk::ParticleDomain, DataObject

Public Types

Name
typedef SmartPointer< ContourDomain > Pointer
typedef ParticleDomain::PointType PointType

Public Functions

Name
itkSimpleNewMacro(ContourDomain )
ContourDomain()
virtual ~ContourDomain()
void SetPolyLine(vtkSmartPointer< vtkPolyData > poly_data)
virtual shapeworks::DomainType GetDomainType() const override
virtual bool ApplyConstraints(PointType & p, int idx, bool dbg =false) const override
virtual PointType UpdateParticlePosition(const PointType & point, int idx, vnl_vector_fixed< double, DIMENSION > & update) const override
virtual vnl_vector_fixed< double, DIMENSION > ProjectVectorToSurfaceTangent(vnl_vector_fixed< double, DIMENSION > & gradE, const PointType & pos, int idx) const override
virtual vnl_vector_fixed< float, DIMENSION > SampleNormalAtPoint(const PointType & point, int idx) const override
virtual vnl_vector_fixed< float, DIMENSION > SampleGradientAtPoint(const PointType & point, int idx) const override
virtual GradNType SampleGradNAtPoint(const PointType & p, int idx) const override
virtual PointType GetValidLocationNear(PointType p) const override
virtual double GetMaxDiameter() const override
virtual void UpdateZeroCrossingPoint() override
virtual double GetCurvature(const PointType & p, int idx) const override
virtual double GetSurfaceMeanCurvature() const override
virtual double GetSurfaceStdDevCurvature() const override
double Distance(const PointType & a, int idx_a, const PointType & b, int idx_b, vnl_vector_fixed< double, 3 > * out_grad =nullptr) const override
virtual double SquaredDistance(const PointType & a, int idx_a, const PointType & b, int idx_b) const override
virtual const PointType & GetLowerBound() const override
virtual const PointType & GetUpperBound() const override
virtual PointType GetZeroCrossingPoint() const override
virtual double GetSurfaceArea() const override
virtual void DeleteImages() override
virtual void DeletePartialDerivativeImages() override
virtual void InvalidateParticlePosition(int idx) const override
virtual PointType GetPositionAfterSplit(const PointType & pt, const vnl_vector_fixed< double, 3 > & random, double epsilon) const override

Protected Functions

Name
void PrintSelf(std::ostream & os, Indent indent) const override

Additional inherited members

Public Types inherited from itk::ParticleDomain

Name
typedef vnl_matrix_fixed< float, DIMENSION, DIMENSION > GradNType

Public Functions inherited from itk::ParticleDomain

Name
virtual bool IsWithinDistance(const PointType & a, int idx_a, const PointType & b, int idx_b, double test_dist, double & distance) const
bool IsDomainFixed() const
std::shared_ptr< Constraints > GetConstraints() const
void SetDomainID(int id)
void SetDomainName(std::string name)

Protected Functions inherited from itk::ParticleDomain

Name
ParticleDomain()
virtual ~ParticleDomain()

Protected Attributes inherited from itk::ParticleDomain

Name
bool m_FixedDomain
int m_DomainID
std::string m_DomainName
std::shared_ptr< Constraints > constraints

Public Types Documentation

typedef Pointer

typedef SmartPointer<ContourDomain> itk::ContourDomain::Pointer;

Standard class typedefs

typedef PointType

typedef ParticleDomain::PointType itk::ContourDomain::PointType;

Point type used to store particle locations.

Public Functions Documentation

function itkSimpleNewMacro

itkSimpleNewMacro(
    ContourDomain 
)

function ContourDomain

inline explicit ContourDomain()

function ~ContourDomain

inline virtual ~ContourDomain()

function SetPolyLine

void SetPolyLine(
    vtkSmartPointer< vtkPolyData > poly_data
)

function GetDomainType

inline virtual shapeworks::DomainType GetDomainType() const override

Reimplements: itk::ParticleDomain::GetDomainType

function ApplyConstraints

virtual bool ApplyConstraints(
    PointType & p,
    int idx,
    bool dbg =false
) const override

Reimplements: itk::ParticleDomain::ApplyConstraints

Apply any constraints to the given point location. This should force the point to a position on the surface that satisfies all constraints.

function UpdateParticlePosition

virtual PointType UpdateParticlePosition(
    const PointType & point,
    int idx,
    vnl_vector_fixed< double, DIMENSION > & update
) const override

Reimplements: itk::ParticleDomain::UpdateParticlePosition

Applies the update to the point and returns the new point position.

function ProjectVectorToSurfaceTangent

virtual vnl_vector_fixed< double, DIMENSION > ProjectVectorToSurfaceTangent(
    vnl_vector_fixed< double, DIMENSION > & gradE,
    const PointType & pos,
    int idx
) const override

Reimplements: itk::ParticleDomain::ProjectVectorToSurfaceTangent

Projects the vector to the surface tangent at the point.

function SampleNormalAtPoint

inline virtual vnl_vector_fixed< float, DIMENSION > SampleNormalAtPoint(
    const PointType & point,
    int idx
) const override

Reimplements: itk::ParticleDomain::SampleNormalAtPoint

function SampleGradientAtPoint

inline virtual vnl_vector_fixed< float, DIMENSION > SampleGradientAtPoint(
    const PointType & point,
    int idx
) const override

Reimplements: itk::ParticleDomain::SampleGradientAtPoint

function SampleGradNAtPoint

inline virtual GradNType SampleGradNAtPoint(
    const PointType & p,
    int idx
) const override

Reimplements: itk::ParticleDomain::SampleGradNAtPoint

function GetValidLocationNear

inline virtual PointType GetValidLocationNear(
    PointType p
) const override

Reimplements: itk::ParticleDomain::GetValidLocationNear

GetValidLocation returns a PointType location on the surface. Used for placing the first particle.

function GetMaxDiameter

inline virtual double GetMaxDiameter() const override

Reimplements: itk::ParticleDomain::GetMaxDiameter

GetMaxDiameter returns the maximum diameter of the domain and is used for computing sigma

function UpdateZeroCrossingPoint

inline virtual void UpdateZeroCrossingPoint() override

Reimplements: itk::ParticleDomain::UpdateZeroCrossingPoint

function GetCurvature

inline virtual double GetCurvature(
    const PointType & p,
    int idx
) const override

Reimplements: itk::ParticleDomain::GetCurvature

Used in ParticleMeanCurvatureAttribute

function GetSurfaceMeanCurvature

inline virtual double GetSurfaceMeanCurvature() const override

Reimplements: itk::ParticleDomain::GetSurfaceMeanCurvature

Used in ParticleMeanCurvatureAttribute

function GetSurfaceStdDevCurvature

inline virtual double GetSurfaceStdDevCurvature() const override

Reimplements: itk::ParticleDomain::GetSurfaceStdDevCurvature

Used in ParticleMeanCurvatureAttribute

function Distance

double Distance(
    const PointType & a,
    int idx_a,
    const PointType & b,
    int idx_b,
    vnl_vector_fixed< double, 3 > * out_grad =nullptr
) const override

function SquaredDistance

virtual double SquaredDistance(
    const PointType & a,
    int idx_a,
    const PointType & b,
    int idx_b
) const override

Reimplements: itk::ParticleDomain::SquaredDistance

Squared Distance between locations is used for computing sigma.

function GetLowerBound

inline virtual const PointType & GetLowerBound() const override

Reimplements: itk::ParticleDomain::GetLowerBound

Gets the minimum x, y, z values of the bounding box for the domain. This is used for setting up the PowerOfTwoPointTree.

function GetUpperBound

inline virtual const PointType & GetUpperBound() const override

Reimplements: itk::ParticleDomain::GetUpperBound

Gets the maximum x, y, z values of the bounding box for the domain. This is used for setting up the PowerOfTwoPointTree.

function GetZeroCrossingPoint

inline virtual PointType GetZeroCrossingPoint() const override

Reimplements: itk::ParticleDomain::GetZeroCrossingPoint

Get any valid point on the domain. This is used to place the first particle.

function GetSurfaceArea

inline virtual double GetSurfaceArea() const override

Reimplements: itk::ParticleDomain::GetSurfaceArea

Use for neighborhood radius.

function DeleteImages

inline virtual void DeleteImages() override

Reimplements: itk::ParticleDomain::DeleteImages

function DeletePartialDerivativeImages

inline virtual void DeletePartialDerivativeImages() override

Reimplements: itk::ParticleDomain::DeletePartialDerivativeImages

function InvalidateParticlePosition

virtual void InvalidateParticlePosition(
    int idx
) const override

Reimplements: itk::ParticleDomain::InvalidateParticlePosition

function GetPositionAfterSplit

virtual PointType GetPositionAfterSplit(
    const PointType & pt,
    const vnl_vector_fixed< double, 3 > & random,
    double epsilon
) const override

Reimplements: itk::ParticleDomain::GetPositionAfterSplit

Protected Functions Documentation

function PrintSelf

inline void PrintSelf(
    std::ostream & os,
    Indent indent
) const override

Updated on 2022-03-31 at 09:51:18 -0600