Object Detection using Template

- Main Page
- Packages
- Classes
- Files

- File List

All Classes Namespaces Files Functions Variables
SimpleXSymetryComparator.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 SimpleXSymetryComparator extends SymetryBaseComparator {
11
12 private int threshold;
13 public SimpleXSymetryComparator(){
14 this.threshold = 1000;
15 }
16 public SimpleXSymetryComparator(int threshold){
17 this.threshold = threshold;
18 }
19 @Override
20 public double getDistance(HOG hog1, HOG hog2) {
21 int xSymetry = 0;
22 xSymetry = computeXSymetry(threshold, hog1.getCells()) - computeXSymetry(threshold, hog2.getCells());
23 return xSymetry;
24 }
25
26 }
cz.vutbr.feec.novak68.hogcomparators.SimpleXSymetryComparator.threshold
int threshold
Definition: SimpleXSymetryComparator.java:12
cz.vutbr.feec.novak68.hogcomparators.SimpleXSymetryComparator
Definition: SimpleXSymetryComparator.java:10
cz.vutbr.feec.novak68.hogcomparators.SimpleXSymetryComparator.getDistance
double getDistance(HOG hog1, HOG hog2)
Definition: SimpleXSymetryComparator.java:20
cz.vutbr.feec.novak68.hogcomparators.SymetryBaseComparator.computeXSymetry
int computeXSymetry(float threshold, float[][][] cells)
Definition: SymetryBaseComparator.java:45
cz.vutbr.feec.novak68.hogcomparators.SimpleXSymetryComparator.SimpleXSymetryComparator
SimpleXSymetryComparator(int threshold)
Definition: SimpleXSymetryComparator.java:16
cz.vutbr.feec.novak68.HOG.getCells
float[][][] getCells()
Definition: HOG.java:345
cz.vutbr.feec.novak68.hogcomparators.SimpleXSymetryComparator.SimpleXSymetryComparator
SimpleXSymetryComparator()
Definition: SimpleXSymetryComparator.java:13
cz.vutbr.feec.novak68.HOG
Definition: HOG.java:19
cz.vutbr.feec.novak68.hogcomparators.SymetryBaseComparator
Definition: SymetryBaseComparator.java:10