-
Notifications
You must be signed in to change notification settings - Fork 0
/
harrisFilterParams.hpp
29 lines (18 loc) · 1.04 KB
/
harrisFilterParams.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* This class holds different parameters required for Harris corner detector
* Algorithm.
*
* Author: Mafijul, 28 Feb 2020.
*/
enum class gradientTypes { Sobel, Roberts }; // Different gradient types.
class harrisFilterParams{
public:
float k = 0.04; // Specifies the empirical constant for computing Harris response (0.04 <= k <=0.06 )
int gradSumWindowSize = 3; // Size of the window for summing grad product. Window size should be an odd number.
int gaussKernelSize = 3; // Size of the window for Gaussian filtering, an odd number is preferred.
float thresHoldNMS = 0.02; // Fraction for computing the threshold for non-maximum suppression.
// Th = thresHoldNMS * max(Harris Response)
int nmsWindowSize = 3; // Non-maximum suppression window size. Generally compute local maximum within this window.
int nmsWindowSeparation = 1; // Non-maximum suppression window separation. Difference between two NMS window.
float gaussSigma = 1.0; // Standard deviation of the Gaussian filter.
};