Object Detection using Template

- Main Page
- Packages
- Classes
- Files

- File List

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