integralhistogram
Interface HistIntersection

All Known Implementing Classes:
HistogramIntersection

public interface HistIntersection

generic interface for integral histogram based intersection computing class.

Author:
Giovanni Tarducci,Alessio Barducci

Method Summary
 boolean intersection(Hist currentHist, Hist leftHist, Hist upHist, Hist up_leftHist, float tolerance, int norm)
          The histogram of a target region can be computed using the wavefront propagated integral histogram values at the boundary points of the region.
 void setHistDistance(HistDistance histDistance)
          Set the HistDistance implementation object you want to use, in other words, set your matching politic.
 

Method Detail

intersection

boolean intersection(Hist currentHist,
                     Hist leftHist,
                     Hist upHist,
                     Hist up_leftHist,
                     float tolerance,
                     int norm)
The histogram of a target region can be computed using the wavefront propagated integral histogram values at the boundary points of the region. So As opposed to the conventional histogram computation,the integral histogram method does not repeat the histogram extraction for each possible region. This method has to be called suring the target search. As main parameters it takes the boundary histograms of the current target region, see below for the other parameters documentation.

Parameters:
currentHist,leftHist,upHist,up_leftHist,targetImgNormHisto - these are the boundary target region's points for the actual intersection computing
targetImgNormHisto - float array storing the normalized histogram of the target image
tolerance - threshold to determine if an intersection correspond to a match or not
norm - used to normalize the "boundary" histograms's bins values
Returns:
boolean true if there was a match for the current target region

setHistDistance

void setHistDistance(HistDistance histDistance)
Set the HistDistance implementation object you want to use, in other words, set your matching politic.

Parameters:
histDistance -


processing library integralhistogram by Giovanni Tarducci, Alessio Barducci. (c) 2009