Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

BrickData Class Reference

#include <BrickData.h>

Inheritance diagram for BrickData:

List of all members.


Detailed Description

Definition at line 24 of file BrickData.h.


Public Member Functions

 BrickData (ShapeSpace &_space, const EndPoint &GFL, const EndPoint &GFR, const EndPoint &GBL, const EndPoint &GBR, const EndPoint &TFL, const EndPoint &TFR, const EndPoint &TBL, const EndPoint &TBR)
 Constructor.
 DATASTUFF_H (BrickData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
EndPoint getGFL ()
EndPoint getGFR ()
EndPoint getGBL ()
EndPoint getGBR ()
EndPoint getTFL ()
EndPoint getTFR ()
EndPoint getTBL ()
EndPoint getTBR ()
virtual bool isMatchFor (const ShapeRoot &other) const
 Match bricks 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.).
virtual 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 std::vector< Shape
< BrickData > > 
findBricks (ShapeSpace &ShS, std::vector< Shape< LineData > > lines)
 Extraction.
static std::vector< Shape
< BrickData > > 
findBricksFromBlobs (ShapeSpace &ShS, std::vector< Shape< BlobData > > blobs1, std::vector< Shape< BlobData > > blobs2, std::vector< Shape< BlobData > > blobs3)
static Shape< BrickDataextractBrick (ShapeSpace &space, std::vector< Shape< BlobData > > &blobs)
static std::vector< PointfindOrthogonalBoundingBox (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.).
BrickDataoperator= (const BrickData &)
 don't call

Static Private Member Functions

static int addBrickWithTwoSides (ShapeSpace &ShS, std::vector< Point > &corners1, std::vector< Point > &corners2, std::vector< std::vector< Point > > &blobs3, std::vector< Shape< BrickData > > &result, float distanceThresh)

Private Attributes

EndPoint GFL
EndPoint GFR
EndPoint GBL
EndPoint GBR
EndPoint TFL
EndPoint TFR
EndPoint TBL
EndPoint TBR
Point centroid

Constructor & Destructor Documentation

BrickData ( ShapeSpace _space,
const EndPoint GFL,
const EndPoint GFR,
const EndPoint GBL,
const EndPoint GBR,
const EndPoint TFL,
const EndPoint TFR,
const EndPoint TBL,
const EndPoint TBR 
)

Constructor.

Definition at line 26 of file BrickData.cc.

Referenced by BrickData::extractBrick().


Member Function Documentation

static ShapeType_t getStaticType (  )  [inline, static]

Copy constructor.

Definition at line 48 of file BrickData.h.

DATASTUFF_H ( BrickData   ) 

Point getCentroid (  )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 52 of file BrickData.h.

Referenced by BrickData::extractBrick().

EndPoint getGFL (  )  [inline]

Definition at line 54 of file BrickData.h.

EndPoint getGFR (  )  [inline]

Definition at line 55 of file BrickData.h.

EndPoint getGBL (  )  [inline]

Definition at line 56 of file BrickData.h.

EndPoint getGBR (  )  [inline]

Definition at line 57 of file BrickData.h.

EndPoint getTFL (  )  [inline]

Definition at line 58 of file BrickData.h.

EndPoint getTFR (  )  [inline]

Definition at line 59 of file BrickData.h.

EndPoint getTBL (  )  [inline]

Definition at line 60 of file BrickData.h.

EndPoint getTBR (  )  [inline]

Definition at line 61 of file BrickData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 41 of file BrickData.cc.

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 50 of file BrickData.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 68 of file BrickData.h.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 60 of file BrickData.cc.

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 77 of file BrickData.cc.

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

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 100 of file BrickData.cc.

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

Project to ground.

Implements BaseData.

Definition at line 111 of file BrickData.cc.

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

Implements BaseData.

Definition at line 82 of file BrickData.h.

std::vector< Shape< BrickData > > findBricks ( ShapeSpace ShS,
std::vector< Shape< LineData > >  lines 
) [static]

Extraction.

Definition at line 174 of file BrickData.cc.

std::vector< Shape< BrickData > > findBricksFromBlobs ( ShapeSpace ShS,
std::vector< Shape< BlobData > >  blobs1,
std::vector< Shape< BlobData > >  blobs2,
std::vector< Shape< BlobData > >  blobs3 
) [static]

Definition at line 321 of file BrickData.cc.

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

Definition at line 611 of file BrickData.cc.

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

Definition at line 1082 of file BrickData.cc.

Referenced by BrickData::extractBrick().

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

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

Brick extraction.

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

Implements BaseData.

Definition at line 147 of file BrickData.cc.

int addBrickWithTwoSides ( ShapeSpace ShS,
std::vector< Point > &  corners1,
std::vector< Point > &  corners2,
std::vector< std::vector< Point > > &  blobs3,
std::vector< Shape< BrickData > > &  result,
float  distanceThresh 
) [static, private]

Definition at line 414 of file BrickData.cc.

Referenced by BrickData::findBricksFromBlobs().

BrickData& operator= ( const BrickData  )  [private]

don't call


Member Data Documentation

Point centroid [private]

Definition at line 36 of file BrickData.h.

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


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