integralhistogram
Class HistogramIntersection

java.lang.Object
  extended by integralhistogram.HistogramIntersection
All Implemented Interfaces:
HistIntersection

public class HistogramIntersection
extends java.lang.Object
implements HistIntersection

use this class to compute the integral histogram's intersection method.

Author:
Giovanni Tarducci,Alessio Barducci

Constructor Summary
HistogramIntersection()
           
 
Method Summary
 boolean intersection(Hist currentHist, Hist leftHist, Hist upHist, Hist up_leftHist, float tolerance, int norm)
          compute intersection between target image's normalized histogram and actual target region
 void setHistDistance(HistDistance histDist)
          set the HistDistance object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramIntersection

public HistogramIntersection()
Method Detail

intersection

public boolean intersection(Hist currentHist,
                            Hist leftHist,
                            Hist upHist,
                            Hist up_leftHist,
                            float tolerance,
                            int norm)
compute intersection between target image's normalized histogram and actual target region

Specified by:
intersection in interface HistIntersection
Parameters:
currentHist,leftHist,upHist,up_leftHist - histograms defined by the target region's boundary
targetImgNormHisto - target image's normalized histogram
tolerance - threshold to accept the actual target region as valid
norm - normalize factor
Returns:
boolean false if the match for the actual target region failed

setHistDistance

public void setHistDistance(HistDistance histDist)
set the HistDistance object

Specified by:
setHistDistance in interface HistIntersection
Parameters:
histDist -


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