In file contour/Constraints2D.h:

class SpacingContour2DConstraint : public Constraint

a class corresponding to a position constraint where the distance between 2 vertices is constrained to belong to an interval [minimumDistance,maximumDistance]

Inheritance:


Public Classes

enum Length
edge length expression kind
constructor
MissingContour (const std::string& from)
constructor from a string
DIRECT
absolute edge length
RATIO
mean edge length fraction

Public Methods

virtual void apply (void)
the apply fonction that adds or removes vertices depending on minimumDistance and maximumDistance
double getMinimumSpacing (void) const
returns the minimum spacing between two vertices
double getMaximumSpacing (void) const
returns the maximum spacing between two vertices
Length getLengthKind (void) const
returns the edge length kind
void setMinimumSpacing (const double min)
sets the minimum spacing between two vertices
void setMaximumSpacing (const double max)
sets the maximum spacing between two vertices
void setLengthKind (Length l)
sets the edge length kind

Public

constructor
SpacingContour2DConstraint (unsigned int freq, Length length, double min, double max, ActiveContour2D *c) throw(MissingContour)
create a spacing constraint
destructor
virtual ~SpacingContour2DConstraint (void)
empty destructor

Private Fields

double minimumSpacing
the minimum Spacing between two vertices : may be set to zero
double maximumSpacing
the maximum Spacing between two vertices
Length length
edge length kind
ActiveContour2D* contour
the ActiveContour2D where the constraint is applied

Documentation

a class corresponding to a position constraint where the distance between 2 vertices is constrained to belong to an interval [minimumDistance,maximumDistance]
enum Length
edge length expression kind

constructor

MissingContour(const std::string& from)
constructor from a string
Parameters:
from - a string indicating where the exception where thrown

DIRECT
absolute edge length

RATIO
mean edge length fraction

double minimumSpacing
the minimum Spacing between two vertices : may be set to zero

double maximumSpacing
the maximum Spacing between two vertices

Length length
edge length kind

ActiveContour2D* contour
the ActiveContour2D where the constraint is applied

virtual void apply(void)
the apply fonction that adds or removes vertices depending on minimumDistance and maximumDistance

double getMinimumSpacing(void) const
returns the minimum spacing between two vertices

double getMaximumSpacing(void) const
returns the maximum spacing between two vertices

Length getLengthKind(void) const
returns the edge length kind

void setMinimumSpacing(const double min)
sets the minimum spacing between two vertices

void setMaximumSpacing(const double max)
sets the maximum spacing between two vertices

void setLengthKind(Length l)
sets the edge length kind

constructor

SpacingContour2DConstraint(unsigned int freq, Length length, double min, double max, ActiveContour2D *c) throw(MissingContour)
create a spacing constraint
Throws:
MissingContour thrown when c is NULL
Parameters:
freq - the frequency at which the constraint is applied
length - edge length expression kind
min - the minimum spacing value defined as a percentage of the median edge length
max - the maximum spacing value defined as a percentage of the median edge length
c - the ontour on which the constraint applies

destructor

virtual ~SpacingContour2DConstraint(void)
empty destructor


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de