Class IntersectionHistoComparator
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.histocomp.IntersectionHistoComparator
-
- All Implemented Interfaces:
IHistoComparator
public class IntersectionHistoComparator extends Object implements IHistoComparator
Computes the Intersection between two histograms.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description IntersectionHistoComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
compareHist(int[] hist1, int[] hist2)
Compares two single dimensional histograms and returns the value computed by their comparison.float
compareHists(int[][] hists1, int[][] hists2)
Compares two multi-dimensional histograms and returns the value computed by their comparison.
-
-
-
Method Detail
-
compareHist
public float compareHist(int[] hist1, int[] hist2)
Description copied from interface:IHistoComparator
Compares two single dimensional histograms and returns the value computed by their comparison.- Specified by:
compareHist
in interfaceIHistoComparator
- Parameters:
hist1
- The first histogram in the comparison.hist2
- The second histogram in the comparison.- Returns:
- The value computed by the comparison of the two input histograms.
-
compareHists
public float compareHists(int[][] hists1, int[][] hists2)
Description copied from interface:IHistoComparator
Compares two multi-dimensional histograms and returns the value computed by their comparison.- Specified by:
compareHists
in interfaceIHistoComparator
- Parameters:
hists1
- The first histogram in the comparison.hists2
- The second histogram in the comparison.- Returns:
- The value computed by the comparison of the two input histograms.
-
-