|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
-------------------------------------------------------
Name : BuckList.hh
Library : nn
Description: Bucket containing 2D Array of lists of DataC
Dependancies:
Modified :
Created : 2.96
Author : Adrian Hilton
-------------------------------------------------------
=========================================================
Internal data structure
========================================================
2D Planar Projection of objects stored as lists
- 2D Array of Lists
Parent Classes:
Variables:
- SArray1dC> table;
-
SArray1dC< DListC > table;
1D array of buckets containing list of DataC
Methods:
- Bucket3to2dC()
-
empty
- Bucket3to2dC(const OrthoProjection3to2dC plane,const Point2dC du,const Index2dC n)
-
Definition of 2D (u,v) reference frame
Bucket Resolution 'du' where metric disntance in 3D & 2D space is same
Number of buckets in reference frame directions n
Limits of 2D reference frame umin,umax - not used (wrap if u>umax)
- Bucket3to2dC(const Bucket3to2dC<DataC> & vv)
-
copy
- const Bucket3to2dC<DataC> operator=(const Bucket3to2dC<DataC> vv)
-
Assigment.
------------------ Operators
- void Ins(const Vector3dC v,DataC data)
-
Insert 'data' element into bucket which is 2D projection of 'v'
- void Ins(const Index2dC i,DataC data)
-
Insert 'data' element into bucket (i,j) in 2D reference plane
- void Del(Vector3dC v,DataC data)
-
Delete element with value 'data' in Bucket(i,j)
------------------- Access to Internal Data Structures
- DListC<DataC> & GetList(const Vector3dC v)
-
DListC& GetList(const Vector3dC v);
Get a list of all 'data' in bucket which is 2D projection of v
- DListC<DataC> & GetList(const Index2dC i)
-
DListC& GetList(const Index2dC i);
Get a list of all 'data' in bucket i
DListC GetList(const Index2dC i) const; // not stack
DListC GetList(const Index2dC i) const;
Get a list of all 'data' in bucket i
- DListC<DListC<DataC>> GetAllList(const Index2dC i,const IntT ii)
-
DListC< DListC > GetAllList(const Index2dC i,const IntT ii);
Get a list of lists of all 'data'
in buckets a grid block distance ii frp, o
BaseBucket3to2dC::Point2d;
BaseBucket3to2dC::Point3d;
- const BaseBucket3to2dC & operator=(const BaseBucket3to2dC & vv)
-
Assigment.
------------------- Operations
- Index2dC Index2d(const Point2dC p) const
-
2D Index of grid (iu,jv) correponding to 2D point in reference plane
- Index2dC Index2d(const Vector3dC v) const
-
2D Index of grid (iu,jv) correponding to 3D point
projected into the reference plane
- Index2dC Index2dInRange(const Index2dC i) const
-
2D Index of grid in range [0..N,0..M] for NxM grid
- Index2dC Size() const
-
Dimension of reference plane grid
- IntT Row() const
-
Dimension of u-axis in (u,v) reference plane grid
- IntT Col() const
-
Dimension of v-axis in (u,v) reference plane grid
- Point2dC Resolution() const
-
Resolution of buckets in )u,v)
- RealT MinResolution() const
-
Minimum Resolution of buckets in (u,v)
- OrthoProjection3to2dC Local() const
-
Local projection plane
--------------------------------- Local Coordinates in 2D Reference Frame
- Point2dC Point2d(const Vector3dC v) const
-
Local projection of 'v' to 2D reference frame
- Point2dC Point2d(const Index2dC i) const
-
Local cordinates (u,v) of grid vertex i in the 2D reference frame
NB: unique transform in 2D: i <=> (u,v)
- Point2dC Point2dInRange(const Vector3dC v) const
-
Local projection of 'v' in range of 2D reference plane
---------------------------------Global Coordinates in 2D Reference Frame
- Point3dC Point3d(const Vector3dC v) const
-
Global coords of 'v' projection of on 2D reference frame
- Point3dC Point3d(const Index2dC i) const
-
Global coords of 'i' on 2D reference frame
- Point3dC Point3d(const Point2dC p) const
-
Global coords of 'p' on 2D reference frame
- Vector3dC Normal() const
-
Normal to 2D Reference Frame
- IntT Index(const Vector3dC v) const
-
1D Index for 3D vector value
- IntT Index(const Point2dC p) const
-
1D Index for 2D point on reference plane
- IntT IndexPoint(const Point2dC p) const
-
- IntT Index(const Index2dC i) const
-
Index for bucket i,j in reference plane
IntT Index(const IntT i, const IntT di, const IntT dj);
Index fo bucket i + (di,dj) = (iu+di,iv+dj) in referene plane
|
Programmer:Adrian Hilton, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|