Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PyramidData Class Reference

#include <PyramidData.h>

Inheritance diagram for PyramidData:

List of all members.


Detailed Description

Definition at line 25 of file PyramidData.h.


Public Member Functions

 PyramidData (ShapeSpace &_space, const EndPoint &FL, const EndPoint &FR, const EndPoint &BL, const EndPoint &BR, const EndPoint &Top)
 Constructor.
 DATASTUFF_H (PyramidData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
EndPoint getFL ()
EndPoint getFR ()
EndPoint getBL ()
EndPoint getBR ()
EndPoint getTop ()
virtual bool isMatchFor (const ShapeRoot &other) const
 Match pyramids based on their parameters. (Virtual in BaseData.).
virtual void mergeWith (const ShapeRoot &other)
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.).
void projectToGround (const NEWMAT::Matrix &camToBase, const NEWMAT::ColumnVector &groundplane)
 Project to ground.
virtual unsigned short getDimension () const

Static Public Member Functions

static ShapeType_t getStaticType ()
 Copy constructor.
static Shape< PyramidDataextractPyramid (ShapeSpace &space, std::vector< Shape< BlobData > > &blobs)
 Extraction.
static std::vector< PointfindBoundingTriangle (ShapeSpace &space, Shape< BlobData > blob, Point centroid, Shape< LineData > parallel)

Private Member Functions

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

Private Attributes

EndPoint FL
EndPoint FR
EndPoint BL
EndPoint BR
EndPoint Top
Point centroid

Constructor & Destructor Documentation

PyramidData ( ShapeSpace _space,
const EndPoint FL,
const EndPoint FR,
const EndPoint BL,
const EndPoint BR,
const EndPoint Top 
)

Constructor.

Definition at line 26 of file PyramidData.cc.

Referenced by PyramidData::extractPyramid().


Member Function Documentation

static ShapeType_t getStaticType (  )  [inline, static]

Copy constructor.

Definition at line 46 of file PyramidData.h.

DATASTUFF_H ( PyramidData   ) 

Point getCentroid (  )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 50 of file PyramidData.h.

Referenced by PyramidData::extractPyramid().

EndPoint getFL (  )  [inline]

Definition at line 52 of file PyramidData.h.

EndPoint getFR (  )  [inline]

Definition at line 53 of file PyramidData.h.

EndPoint getBL (  )  [inline]

Definition at line 54 of file PyramidData.h.

EndPoint getBR (  )  [inline]

Definition at line 55 of file PyramidData.h.

EndPoint getTop (  )  [inline]

Definition at line 56 of file PyramidData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 39 of file PyramidData.cc.

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 48 of file PyramidData.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 63 of file PyramidData.h.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 54 of file PyramidData.cc.

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 67 of file PyramidData.cc.

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

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 78 of file PyramidData.cc.

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

Project to ground.

Implements BaseData.

Definition at line 102 of file PyramidData.cc.

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

Implements BaseData.

Definition at line 77 of file PyramidData.h.

Shape< PyramidData > extractPyramid ( ShapeSpace space,
std::vector< Shape< BlobData > > &  blobs 
) [static]

Extraction.

Definition at line 164 of file PyramidData.cc.

vector< Point > findBoundingTriangle ( ShapeSpace space,
Shape< BlobData blob,
Point  centroid,
Shape< LineData parallel 
) [static]

Definition at line 332 of file PyramidData.cc.

Referenced by PyramidData::extractPyramid().

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

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

Pyramid extraction.

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

Implements BaseData.

Definition at line 129 of file PyramidData.cc.

PyramidData& operator= ( const PyramidData  )  [private]

don't call


Member Data Documentation

Point centroid [private]

Definition at line 33 of file PyramidData.h.

Referenced by PyramidData::getCentroid(), and PyramidData::projectToGround().


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

DualCoding 4.0
Generated Thu Nov 22 00:54:02 2007 by Doxygen 1.5.4