User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
PCLineSegC::PCLineSegC(void)
PCLineSegC::PCLineSegC(const Point2dSArray1dC &)
PCLineSegC::PCLineSegC(const PCLineSegC &)
PCLineSegC::PCLineSegC(const LineABC2dC &,Point2dC,Point2dC)
PCLineSegC::PCLineSegC(Point2dC,Point2dC)
PCLineSegC::FitLSQ(const Point2dSArray1dC &)
PCLineSegC::Fit(const Point2dSArray1dC &)
PCLineSegC::Start(void) const
PCLineSegC::End(void) const
PCLineSegC::Start(void)
PCLineSegC::End(void)
PCLineSegC::StartPnt(void) const
PCLineSegC::EndPnt(void) const
PCLineSegC::MidPnt(void) const
PCLineSegC::Length(void) const
PCLineSegC::WriteGF(ostream &) const
PCLineSegC::Compair(PCLineSegC &)
PCLineSegC::WriteGFHeader(ostream &)
PCLineC::FitLSQ(const Point2dSArray1dC &)
PCLineC::Fit(const Point2dSArray1dC &)
PCLineC::AssessFit(const Point2dSArray1dC &)
PCLineC::Angle(void)
PCLineC::operator=(const LineABC2dC &)
PCLineC::Tangent(RealT) const
PCLineC::UnitTangent(RealT) const
PCLineC::UnitNormal(void) const
PCLineC::Point(RealT) const
PCLineC::Closest(Point2dC) const
PCLineC::GetLimits(RealT &,RealT &,const ImageRectangleC &) const
PCLineC::GetName(void) const
PCLineC::CodeSize(void) const
PCLineC::WriteGF(ostream &) const
PCLineC::WriteGFHeader(ostream &)
PCLineC::Print(ostream &) const
LineABC2dC::Normal(void) const
LineABC2dC::UnitNormal(void) const
LineABC2dC::Rho(void) const
LineABC2dC::A(void) const
LineABC2dC::B(void) const
LineABC2dC::C(void) const
LineABC2dC::ValueX(const RealT) const
LineABC2dC::ValueY(const RealT) const
LineABC2dC::Residuum(const Point2dC &) const
LineABC2dC::MakeUnitNormal(void)
LineABC2dC::AreParallel(const LineABC2dC &) const
LineABC2dC::Intersection(const LineABC2dC &) const
LineABC2dC::SqrEDistance(const Point2dC &) const
LineABC2dC::SDistance(const Point2dC &) const
LineABC2dC::Distance(const Point2dC &) const
LineABC2dC::Projection(const Point2dC &) const
PCLineSegC
 
Parametric line segement.
 
include "amma/PCLineSeg.hh"
User Level:Default
Library:Mag2
Example:exMat2d.cc
Section:Geometry.2-D
In Scope:std

Parent Classes:

Variables:
Methods:
PCLineSegC()
Default constructor.

PCLineSegC(const Point2dSArray1dC & Pnts)
Make a line that best fits the given points.

PCLineSegC(const PCLineSegC & Oth)
Copy constructor.

PCLineSegC(const LineABC2dC & Line,Point2dC Start,Point2dC End)
From a line.

PCLineSegC(Point2dC Start,Point2dC End)
From a pair of points.

RealT FitLSQ(const Point2dSArray1dC & Pnts)
Make a line that fits points.

RealT Fit(const Point2dSArray1dC & Pnts)
Default fitting method.

RealT Start() const
Get paramiter for start of line.

RealT End() const
Get paramiter for end of line.

RealT & Start()
Get paramiter for start of line.

RealT & End()
Get paramiter for end of line.

Point2dC StartPnt() const
Get start point of line.

Point2dC EndPnt() const
Get end point of line.

Point2dC MidPnt() const
Mid point of segment.

RealT Length() const
Length of segment.

BooleanT WriteGF(ostream & Out) const
Write GF file.

RealT Compair(PCLineSegC & oth)
This is designed to be used to match lines.
It returns the sum of the distances between the closest end points.

BooleanT WriteGFHeader(ostream & Out)
Write GF file.

#include "amma/PCLine.hh"
RealT FitLSQ(const Point2dSArray1dC & Pnts)
Make a line that fits points.

RealT Fit(const Point2dSArray1dC & Pnts)
Default fitting method.

RealT AssessFit(const Point2dSArray1dC & Pnts)
Measure error for fit.

AngleC Angle()

const PCLineC & operator=(const LineABC2dC & It)
Assign from a plain LineABC.

Vector2dC Tangent(RealT) const
Tangent to curve at p

Vector2dC UnitTangent(RealT) const
Tangent to curve at p

Vector2dC UnitNormal() const
Get the unit normal.

Point2dC Point(RealT p) const
Localion of curve at p

RealT Closest(Point2dC Pnt) const
Parametric value of closest point on curve to Pnt.

void GetLimits(RealT & Low,RealT & High,const ImageRectangleC & Rect) const
Get limits of paramiter if shape is within Rect.

char * GetName() const
Name of primitive.

IntT CodeSize() const
Estimated bits to code primitive.

BooleanT WriteGF(ostream & Out) const
Write GF file.

BooleanT WriteGFHeader(ostream & Out)
Write GF file.

void Print(ostream & out) const
Print to ostream.

#include "amma/Line2ABC.hh"
Vector2dC Normal() const
Returns the normal of the line.

Vector2dC UnitNormal() const
Returns the normal of the line normalized to have unit size.

RealT Rho() const
Returns the distance of the line from the origin of the coordinate system.

RealT A() const
Returns parameter a.

RealT B() const
Returns parameter b.

RealT C() const
Returns parameter c.

RealT ValueX(const RealT y) const
Returns the value of x coordinate if the y coordinate is known.
If the parameter A() is zero, the zero is returned.

RealT ValueY(const RealT x) const
Returns the value of y coordinate if the x coordinate is known.
If the parameter B() is zero, the zero is returned. Geometrical constructions. --------------------------

RealT Residuum(const Point2dC & p) const
Returns the value of the function A()*p.X()+B()*p.Y()+C() often used in geometrical computations.

LineABC2dC & MakeUnitNormal()
Normalizes the equation so that the normal vector is unit.

BooleanT AreParallel(const LineABC2dC & line) const
Returns TRUE if the lines are parallel.

Point2dC Intersection(const LineABC2dC & line) const
Returns the intersection of both lines.
If the intersection doesn't exist, the function returns Point2dC(0,0).

RealT SqrEDistance(const Point2dC & point) const
Returns the squared Euclidian distance of the 'point' from the line.

RealT SDistance(const Point2dC & point) const
Returns the signed distance of the 'point' from the line.
The return value is greater than 0 if the point is on the left side of the line. The left side of the line is determined by the direction of the normal.

RealT Distance(const Point2dC & point) const
Returns the distance of the 'point' from the line.

Point2dC Projection(const Point2dC & point) const
Returns the point which is the orthogonal projection of the 'point' to the line.
It is the same as intersection of this line with the perpendicular line passing through the 'point'.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001