Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

EllipseData Class Reference

#include <EllipseData.h>

Inheritance diagram for EllipseData:

List of all members.


Detailed Description

Definition at line 22 of file EllipseData.h.


Public Member Functions

 EllipseData (ShapeSpace &_space, const Point &c, const float _semimajor=25, const float _semiminor=15, const float _orientation=0)
 Constructor.
 DATASTUFF_H (EllipseData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
void setCentroidPt (const Point &other)
std::pair< Point, PointfindFeaturePoints () const
 finds points where semiminor or semimajor axis touchs the circumference of ellipse
void updateProperties (const Point &minorPt, const Point &majorPt)
 updates major/minor axis and orientation from feature points
BoundingBox getBoundingBox () const
virtual bool isMatchFor (const ShapeRoot &other) const
 Match ellipses based on their parameters. (Virtual in BaseData.).
virtual bool isAdmissible () const
 Combine two shapes by taking weighted average depending on confidence level.
virtual bool updateParams (const ShapeRoot &other, bool force=false)
 Update shape parameters after matching to another shape.
virtual void printParams () const
 Print information about this shape. (Virtual in BaseData.).
void applyTransform (const NEWMAT::Matrix &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformations. (Virtual in BaseData.).
virtual void projectToGround (const NEWMAT::Matrix &camToBase, const NEWMAT::ColumnVector &groundplane)
 Project to ground.
const PointcenterPt () const
 Center point access function.
virtual unsigned short getDimension () const
AngPi getOrientation () const
 Properties functions.
float getSemimajor () const
 Properties functions.
float getSemiminor () const
 Properties functions.
void setOrientation (const AngPi _orientation)
 Set properties.
void setSemimajor (float _semimajor)
 Set properties.
void setSemiminor (float _semiminor)
 Set properties.

Static Public Member Functions

static ShapeType_t getStaticType ()
static std::vector< Shape
< EllipseData > > 
extractEllipses (const Sketch< bool > &sketch)
 Extraction.

Private Member Functions

virtual Sketch< bool > * render () const
 Render into a sketch space and return reference. (Private.).
EllipseDataoperator= (const EllipseData &)
 don't call

Private Attributes

Point center_pt
float semimajor
float semiminor
AngPi orientation

Constructor & Destructor Documentation

EllipseData ( ShapeSpace _space,
const Point c,
const float  _semimajor = 25,
const float  _semiminor = 15,
const float  _orientation = 0 
)

Constructor.

Definition at line 29 of file EllipseData.cc.


Member Function Documentation

static ShapeType_t getStaticType (  )  [inline, static]

Definition at line 34 of file EllipseData.h.

DATASTUFF_H ( EllipseData   ) 

Point getCentroid (  )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 39 of file EllipseData.h.

void setCentroidPt ( const Point other  )  [inline]

Definition at line 40 of file EllipseData.h.

pair< Point, Point > findFeaturePoints (  )  const

finds points where semiminor or semimajor axis touchs the circumference of ellipse

Definition at line 81 of file EllipseData.cc.

Referenced by EllipseData::applyTransform(), and EllipseData::projectToGround().

void updateProperties ( const Point minorPt,
const Point majorPt 
)

updates major/minor axis and orientation from feature points

Definition at line 108 of file EllipseData.cc.

Referenced by EllipseData::applyTransform(), and EllipseData::projectToGround().

BoundingBox getBoundingBox (  )  const [virtual]

Reimplemented from BaseData.

Definition at line 38 of file EllipseData.cc.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Match ellipses based on their parameters. (Virtual in BaseData.).

Implements BaseData.

Definition at line 49 of file EllipseData.cc.

virtual bool isAdmissible (  )  const [inline, virtual]

Combine two shapes by taking weighted average depending on confidence level.

Shapes are admissible to the local map if they're large enough not to be noise.

Reimplemented from BaseData.

Definition at line 53 of file EllipseData.h.

bool updateParams ( const ShapeRoot other,
bool  forceUpdate = false 
) [virtual]

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 57 of file EllipseData.cc.

void printParams (  )  const [virtual]

Print information about this shape. (Virtual in BaseData.).

Implements BaseData.

Definition at line 71 of file EllipseData.cc.

void applyTransform ( const NEWMAT::Matrix &  Tmat,
const ReferenceFrameType_t  newref = unspecified 
) [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 99 of file EllipseData.cc.

void projectToGround ( const NEWMAT::Matrix &  camToBase,
const NEWMAT::ColumnVector &  groundplane 
) [virtual]

Project to ground.

Implements BaseData.

Definition at line 114 of file EllipseData.cc.

const Point& centerPt (  )  const [inline]

Center point access function.

Definition at line 70 of file EllipseData.h.

Referenced by EllipseData::printParams(), and EllipseData::render().

virtual unsigned short getDimension (  )  const [inline, virtual]

Implements BaseData.

Definition at line 72 of file EllipseData.h.

AngPi getOrientation (  )  const [inline]

Properties functions.

Definition at line 76 of file EllipseData.h.

Referenced by EllipseData::findFeaturePoints(), and EllipseData::printParams().

float getSemimajor (  )  const [inline]

Properties functions.

Definition at line 77 of file EllipseData.h.

Referenced by EllipseData::findFeaturePoints(), and EllipseData::printParams().

float getSemiminor (  )  const [inline]

Properties functions.

Definition at line 78 of file EllipseData.h.

Referenced by EllipseData::findFeaturePoints(), and EllipseData::printParams().

void setOrientation ( const AngPi  _orientation  ) 

Set properties.

Functions to set properties.

Definition at line 125 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

void setSemimajor ( float  _semimajor  ) 

Set properties.

Functions to set properties.

Definition at line 130 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

void setSemiminor ( float  _semiminor  ) 

Set properties.

Functions to set properties.

Definition at line 135 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

std::vector< Shape< EllipseData > > extractEllipses ( const Sketch< bool > &  sketch  )  [static]

Extraction.

Ellipse extraction.

Definition at line 149 of file EllipseData.cc.

Referenced by MapBuilder::getCamEllipses().

Sketch< bool > * render (  )  const [private, virtual]

Render into a sketch space and return reference. (Private.).

Implements BaseData.

Definition at line 177 of file EllipseData.cc.

EllipseData& operator= ( const EllipseData  )  [private]

don't call


Member Data Documentation


The documentation for this class was generated from the following files:

DualCoding 4.0
Generated Thu Nov 22 00:53:56 2007 by Doxygen 1.5.4