|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
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.
- 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'.
- istream & operator>>(istream & inS,LineABC2dC & line)
-
- LineABC2dC::RealT ValueX(const LineABC2dC::RealT y) const
-
- LineABC2dC::RealT ValueY(const LineABC2dC::RealT x) const
-
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|