integralhistogram
Class HistogramIntersection
java.lang.Object
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
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 |
HistogramIntersection
public HistogramIntersection()
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 boundarytargetImgNormHisto
- target image's normalized histogramtolerance
- threshold to accept the actual target region as validnorm
- 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