Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PyramidData Class Reference

#include <PyramidData.h>

Inheritance diagram for PyramidData:

Detailed Description

Definition at line 23 of file PyramidData.h.

List of all members.

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.).
EndPointgetFL ()
const EndPointgetFL () const
EndPointgetFR ()
const EndPointgetFR () const
EndPointgetBL ()
const EndPointgetBL () const
EndPointgetBR ()
const EndPointgetBR () const
EndPointgetTop ()
const EndPointgetTop () const
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 fmat::Transform &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformations. (Virtual in BaseData.).
void projectToGround (const fmat::Transform &camToBase, const PlaneEquation &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

void applyTransform ( const fmat::Transform Tmat,
const ReferenceFrameType_t  newref = unspecified 
) [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 78 of file PyramidData.cc.

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

Extraction.

Definition at line 163 of file PyramidData.cc.

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

Definition at line 331 of file PyramidData.cc.

Referenced by PyramidData::extractPyramid().

const EndPoint& getBL (  )  const

Definition at line 55 of file PyramidData.h.

EndPoint& getBL (  ) 

Definition at line 54 of file PyramidData.h.

const EndPoint& getBR (  )  const

Definition at line 57 of file PyramidData.h.

EndPoint& getBR (  ) 

Definition at line 56 of file PyramidData.h.

Point getCentroid (  )  const [virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 48 of file PyramidData.h.

Referenced by PyramidData::extractPyramid().

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 79 of file PyramidData.h.

const EndPoint& getFL (  )  const

Definition at line 51 of file PyramidData.h.

EndPoint& getFL (  ) 

Definition at line 50 of file PyramidData.h.

const EndPoint& getFR (  )  const

Definition at line 53 of file PyramidData.h.

EndPoint& getFR (  ) 

Definition at line 52 of file PyramidData.h.

static ShapeType_t getStaticType (  )  [static]

Copy constructor.

Definition at line 44 of file PyramidData.h.

const EndPoint& getTop (  )  const

Definition at line 59 of file PyramidData.h.

EndPoint& getTop (  ) 

Definition at line 58 of file PyramidData.h.

virtual bool isAdmissible (  )  const [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 66 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.

PyramidData& operator= ( const PyramidData  )  [private]

don't call

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 67 of file PyramidData.cc.

void projectToGround ( const fmat::Transform camToBase,
const PlaneEquation groundplane 
) [virtual]

Project to ground.

Implements BaseData.

Definition at line 102 of file PyramidData.cc.

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 128 of file PyramidData.cc.

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.


Member Data Documentation

Point centroid [private]

Definition at line 31 of file PyramidData.h.

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


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

DualCoding 5.1CVS
Generated Mon May 9 04:56:31 2016 by Doxygen 1.6.3