Object Detection using Template

- Main Page
- Packages
- Classes
- Files

- File List

All Classes Namespaces Files Functions Variables
StrengthElementFilter.java
Go to the documentation of this file.
1 package cz.vutbr.feec.novak68.hogfilters;
2
3 import cz.vutbr.feec.novak68.Support;
4
9 public class StrengthElementFilter implements HOGFilter{
10 @Override
11 public float[][][] filter(float[][][] cells) {
12 float [][][] cellMask = new float[cells.length][cells[0].length][cells[0][0].length];
13 for (int x = 0; x< cells.length ; x++){
14 for (int y = 0; y<cells[0].length; y++)
15 {
16 float maxMagn = 0;
17 int aposition = 0;
18 for (int a = 0; a<cells[0][0].length ; a++)
19 {
20 if (cells[x][y][a] > maxMagn)
21 {
22 maxMagn = cells[x][y][a];
23 aposition = a;
24 }
25 }
26 cellMask[x][y][aposition] = 1;
27 }
28 }
29 return Support.matrixMultiply(cells, cellMask);
30 }
31 }
cz.vutbr.feec.novak68.hogfilters.StrengthElementFilter
Definition: StrengthElementFilter.java:9
cz.vutbr.feec.novak68.hogfilters.StrengthElementFilter.filter
float[][][] filter(float[][][] cells)
Definition: StrengthElementFilter.java:11
cz.vutbr.feec.novak68.Support
Definition: Support.java:6
cz.vutbr.feec.novak68.hogfilters.HOGFilter
Definition: HOGFilter.java:8