|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object integralhistogram.HistogramDistance
public class HistogramDistance
this class implements HistDistance. You can use it via MyTargetUser and MyTargetUser2.
Constructor Summary | |
---|---|
HistogramDistance(float[] targetImgNormHist)
Set the local reference to the normalized histogram of the target image; used during the distance compute. |
Method Summary | |
---|---|
float |
computeDistance(float intersection,
int bin)
called during the intersection process. |
void |
init()
init the distance value |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistogramDistance(float[] targetImgNormHist)
targetImgNormHist
- target image's normalized histogramMethod Detail |
---|
public float computeDistance(float intersection, int bin)
computeDistance
in interface HistDistance
intersection
- current intersection valuebin
- current bin
public void init()
init
in interface HistDistance
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |