Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
RealHistogram2dC::RealHistogram2dC(const Point2dC &,const Point2dC &,const Point2dC &)
RealHistogram2dC::RealHistogram2dC(const RealHistogram2dC &)
RealHistogram2dC::StartPoint(const Index2dC &) const
RealHistogram2dC::MidPoint(const Index2dC &) const
RealHistogram2dC::Vote(const Point2dC &)
RealHistogram2dC::CheckedVote(const Point2dC &)
RealHistogram2dC::ZeroVote(const Point2dC &)
RealHistogram2dC::UnVote(const Point2dC &)
RealHistogram2dC::Empty(void)
RealHistogram2dC::NearestPeak(Point2dC &,RealT)
RealHistogram2dC::ListPeaks(IntT)
RealHistogram2dC::operator<<(ostream &,const RealHistogram2dC &)
RealHistogram2dC
 
2 dimensional histogram with real index
 
include "amma/ReHist2d.hh"
User Level:Default
Library:Mstat
Example:exBnd.cc
Section:Statistics.Histograms
In Scope:std

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:
Point2dC minValue;
minimum accepted value

Point2dC maxValue;
a value just greater than maximum accepted value

Point2dC delta;
the size of bins

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 !

ostream & operator<<(ostream & s,const RealHistogram2dC & arr)


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001