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

  PUBLIC
GeomLine2dFeatC::GeomLine2dFeatC(const Line2dPPC,const GfFeatT)
GeomLine2dFeatC::GeomLine2dFeatC(const StringC,const IntT,const GfFeatT)
GeomLine2dFeatC::Line(void) const
GeomLine2dFeatC::CG(void) const
GeomLine2dFeatC::Extent(void) const
GeomLine2dFeatC::Orientation(void) const
GeomFeatC::Include(const RealSArray1dC)
GeomFeatC::Include(const MatrixC)
GeomFeatC::Pt(void) const
GeomFeatC::Line(void) const
GeomFeatC::CG(void) const
GeomFeatC::Extent(void) const
GeomFeatC::Orientation(void) const
Line2dPPC::FirstPoint(void) const
Line2dPPC::SecondPoint(void) const
Line2dPPC::FirstPoint(void)
Line2dPPC::SecondPoint(void)
Line2dPPC::operator[](const IndexT) const
Line2dPPC::operator[](const IndexT)
Line2dPPC::Vector(void) const
Line2dPPC::Normal(void) const
Line2dPPC::GetX(RealT) const
Line2dPPC::GetY(RealT) const
Line2dPPC::PointT(RealT) const
Line2dPPC::Swap(void)
Line2dPPC::Swapped(void) const
Line2dPPC::operator*(const RealT &) const
Line2dPPC::Length(void) const
Line2dPPC::ParIntersection(const Line2dPPC &) const
Line2dPPC::HasInnerIntersection(const Line2dPPC &) const
Line2dPPC::Intersection(const Line2dPPC &) const
Line2dPPC::SqrEDistance(const Point2dC &) const
Line2dPPC::SDistance(const Point2dC &) const
Line2dPPC::Distance(const Point2dC &) const
Line2dPPC::Projection(const Point2dC &) const
GeomFeatLabelC::Field(StringC)
GeomFeatLabelC::SetType(const GfFeatT)
GeomFeatLabelC::Type(void) const
GeomFeatLabelC::NoOfPts(void) const
GeomFeatLabelC::Dim(void) const
GeomFeatLabelC::TypeStr(void) const
GeomLine2dFeatC
 
2D line feature inherited from GeomFeatC
 
include "amma/GeomLine2dFt.hh"
User Level:Default
Library:Cgeomfeat
Example:exMultiLevelMatchEst.cc
Section:Geometry.Geom Features
In Scope:std

Comments:
The class GeomLine2dFeatC is derived from GeomFeatC and Line2dPPC to handle 2D line segment features. It adds generic geometric feature properties to Line2dPPC, and provides gf format I/O via the GeomFeatLabelC inheritance.

Parent Classes: Methods:
GeomLine2dFeatC(const Line2dPPC l,const GfFeatT type)
constructs feature from 2D line

GeomLine2dFeatC(const StringC gf_str,const IntT field,const GfFeatT type)
constructs feature from gf set string

const Line2dPPC Line() const
returns 2D line

const VectorC CG() const
returns c.g. of feature

RealT Extent() const
returns max "radius" of feature

RealT Orientation() const
returns feature "orientation", defined as orientation of line joining 1st feature point to c.g.

#include "amma/GeomFeat.hh"
void Include(const RealSArray1dC extra)
incorporate extra feature measurements

void Include(const MatrixC error)
incorporate error propagation Jacobian (an obscure feature - see "matcher" package in GAMA)

const Point2dC Pt() const
returns 2D point

const Line2dPPC Line() const
returns 2D line

const VectorC CG() const
returns c.g. of feature

RealT Extent() const
returns max "radius" of feature

RealT Orientation() const
returns feature "orientation", defined as orientation of line joining 1st feature point to c.g.

#include "amma/Line2dPP.hh"
const Point2dC & FirstPoint() const
Returns the start point.

const Point2dC & SecondPoint() const
Returns the end point.

Point2dC & FirstPoint()
Returns the start point.

Point2dC & SecondPoint()
Returns the end point.

const Point2dC & operator[](const IndexT i) const
Returns the ith point.

Point2dC & operator[](const IndexT i)
Returns the ith point.

Vector2dC Vector() const
Returns the vector from the start point to the end point.

Vector2dC Normal() const
Returns the vector perpendicular to the direction of this line. The normal vector is counter-clockwise rotated about PI/2 according to the direction of the line.

RealT GetX(RealT y) const
Returns the x coordinate of the point on the line if the y coordinate is known.

RealT GetY(RealT x) const
Returns the y coordinate of the point on the line if the x coordinate is known.

Point2dC PointT(RealT t) const
Returns the point of the line which is determined as A+(B-A) * t, where A is the start point of the line and B is the end point of the line.

void Swap()
Swaps the end points of this

Line2dPPC Swapped() const
Returns a line with swapped endpoints

Line2dPPC operator*(const RealT & x) const
Returns line whose endpoint coordinates are scaled by x

RealT Length() const
Returns the length of the line (i.e. Euclidean distance between endpoints) Geometrical constructions. --------------------------

RealT ParIntersection(const Line2dPPC & l) const
Returns the parameter of the intersection according to this line. If the parameter is equal to 0, the intersection is the starting point of this line, if the parameter is 1, the intersection is the end point. If the parameter is between 0 and 1 the intersection is inside of this line segment.

BooleanT HasInnerIntersection(const Line2dPPC & l) const
Returns TRUE if the intersection of this line segment and the line 'l' is either inside of this line segment or one of the end points.

Point2dC Intersection(const Line2dPPC & line) const
Returns the intersection of 2 lines.

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 vector of the line.

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'.

#include "amma/GeomFeatLabel.hh"
IntT Field(StringC gf_format)
returns position of feature in gf format string

void SetType(const GfFeatT new_type)
assign gf type

GfFeatT Type() const
returns gf type of feature

IntT NoOfPts() const
returns no. of points in feature

IntT Dim() const
returns dimensionality of feature space

StringC TypeStr() const
returns string representation of gf type of set elements


Programmer:Bill Christmas, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001