Object Detection using Template

- Main Page
- Packages
- Classes
- Files

- File List

All Classes Namespaces Files Functions Variables
HorizontalElementComparator.java
Go to the documentation of this file.
1 package cz.vutbr.feec.novak68.hogcomparators;
2
3 import cz.vutbr.feec.novak68.HOG;
4
10 public class HorizontalElementComparator extends ElementBaseComparator{
11 private float threshold;
12 public HorizontalElementComparator(){
13 this(1000);
14 }
15 public HorizontalElementComparator(float threshold){
16 this.threshold = threshold;
17 }
18 @Override
19 public double getDistance(HOG hog1, HOG hog2) {
20 return computeHorizontalElements(hog1.getCells(), threshold)-computeHorizontalElements(hog2.getCells(), threshold);
21 }
22
23 }
cz.vutbr.feec.novak68.hogcomparators.HorizontalElementComparator.threshold
float threshold
Definition: HorizontalElementComparator.java:11
cz.vutbr.feec.novak68.hogcomparators.HorizontalElementComparator.HorizontalElementComparator
HorizontalElementComparator()
Definition: HorizontalElementComparator.java:12
cz.vutbr.feec.novak68.hogcomparators.HorizontalElementComparator
Definition: HorizontalElementComparator.java:10
cz.vutbr.feec.novak68.HOG.getCells
float[][][] getCells()
Definition: HOG.java:345
cz.vutbr.feec.novak68.hogcomparators.ElementBaseComparator
Definition: ElementBaseComparator.java:8
cz.vutbr.feec.novak68.hogcomparators.HorizontalElementComparator.HorizontalElementComparator
HorizontalElementComparator(float threshold)
Definition: HorizontalElementComparator.java:15
cz.vutbr.feec.novak68.HOG
Definition: HOG.java:19
cz.vutbr.feec.novak68.hogcomparators.HorizontalElementComparator.getDistance
double getDistance(HOG hog1, HOG hog2)
Definition: HorizontalElementComparator.java:19
cz.vutbr.feec.novak68.hogcomparators.ElementBaseComparator.computeHorizontalElements
int computeHorizontalElements(float[][][] cells, float threshold)
Definition: ElementBaseComparator.java:10