|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class RealHistogram2dC represents a histogram of 2D points.
It is possible set up its resolution, eg. the size of bins.
The histogram works on the interval
Parent Classes:
Variables:
Methods:
- RealHistogram2dC(const Point2dC & minPoint,const Point2dC & maxPoint,const Point2dC & resolution)
-
Creates a histogram with all bins initialized to be zero.
The histogram is prepared to accept values in the rectangle
- RealHistogram2dC(const RealHistogram2dC & vv)
-
Another access to the histogram 'vv'.
Access to the object.
---------------------
- Point2dC StartPoint(const Index2dC & i) const
-
Returns the point of the beginning of the bin with the index 'i'.
- Point2dC MidPoint(const Index2dC & i) const
-
Returns the point of the center of the bin with the index 'i'.
Updating of histogram.
----------------------
- IntT Vote(const Point2dC & p)
-
Updates the histogram by adding another point 'p'. The point
must be inside the rectangle
- IntT CheckedVote(const Point2dC & p)
-
Upddates the histogram by adding another point 'p'. The points
outside the rectangle are ignored.
Return: Number of votes in bin after update, this will be
zero if vote is outside the accumulator.
- void ZeroVote(const Point2dC & p)
-
Set bin to zero at given point.
- void UnVote(const Point2dC & p)
-
Reduce count for bin by one.
- void Empty()
-
Set contents to zero.
- BooleanT NearestPeak(Point2dC & at,RealT maxdist)
-
Go up slope to the nearest peak, as long as its withing distance, maxdist
Returns TRUE if peak found, false otherwise.
FIXME :- UNTESTED !
- DListC<Point2dC> ListPeaks(IntT threshold = 0)
-
List all peaks in histogram above threshold.
A peak is a bin with a higher count than all the
surrounding bins, (8 Connected).
FIXME :- UNTESTED !
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|