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

  PUBLIC
PCLineC::PCLineC(void)
PCLineC::PCLineC(const Point2dSArray1dC &)
PCLineC::PCLineC(Point2dC,Point2dC)
PCLineC::PCLineC(const PCLineC &)
PCLineC::PCLineC(const LineABC2dC &)
PCLineC::PCLineC(RealT,RealT)
PCLineC::PCLineC(Point2dC,Vector2dC)
PCLineC::PCLineC(RealT,RealT,RealT)
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
PCLineC
 
Parametric Line.
 
include "amma/PCLine.hh"
User Level:Default
Library:Mag2
Example:exMat2d.cc
Section:Geometry.2-D
In Scope:std

Comments:
This class modifies the line equation so it always has a unit normal.

Parent Classes: Derived Classes: Methods:
PCLineC()
Default constructor.

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

PCLineC(Point2dC p1,Point2dC p2)
Make a line passing through two pixels.

PCLineC(const PCLineC & Oth)
Copy constructor.

PCLineC(const LineABC2dC & Line)
From a line.

PCLineC(RealT row,RealT theta)
From Y axis crossing point and angle.

PCLineC(Point2dC mid,Vector2dC dir)
From a point and a direction.

PCLineC(RealT a,RealT b,RealT c)
From paramiters.

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