FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ptrack_cpp/include/CenterlineWithWidthPattern.h at master · maksay/ptrack_cpp · GitHub
maksay
/
ptrack_cpp
Public
Notifications
You must be signed in to change notification settings
Fork
8
Star
23
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ptrack_cpp
/
include
/
CenterlineWithWidthPattern.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (37 loc) · 1.34 KB
Breadcrumbs
ptrack_cpp
/
include
/
CenterlineWithWidthPattern.h
Copy path
File metadata and controls
39 lines (37 loc) · 1.34 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
30
31
32
33
34
35
36
37
38
39
/*
* Copyright 2016 Andrii Maksai
*/
#
ifndef
CODE_INCLUDE_CENTERLINEWITHWIDTHPATTERN_H_
#
define
CODE_INCLUDE_CENTERLINEWITHWIDTHPATTERN_H_
#
include
<
utility
>
#
include
<
vector
>
#
include
<
string
>
#
include
"
Detection.h
"
#
include
"
Pattern.h
"
class
CenterlineWithWidthPattern
:
public
Pattern
{
friend
class
CenterlineWithWidthPatternTest
;
friend
class
SolverTest
;
friend
class
TransformationTest
;
std::pair<
size_t
,
float
>
projection_point_idx
(Detection* node);
float
pattern_length_between
(
size_t
start_idx,
size_t
end_idx);
std::pair<
float
,
float
>
mn_function
(Detection* node_start,
Detection* node_end);
std::vector<std::pair<
float
,
float
> > points;
float
width;
float
alpha;
float
epsilon;
float
epsilon_no_pattern;
public:
virtual
float
area
();
virtual
std::string
to_string
();
CenterlineWithWidthPattern
(std::string pattern_string);
CenterlineWithWidthPattern
(PatternType _pattern_type,
std::vector<std::pair<
float
,
float
> > _points,
float
_width,
float
_alpha,
float
_epsilon,
float
_epsilon_no_pattern);
virtual
float
score
(Detection* node_start, Detection* node_end);
float
&
get_alpha
();
float
&
get_epsilon_no_pattern
();
float
&
get_epsilon
();
};
#
endif
//
CODE_INCLUDE_CENTERLINEWITHWIDTHPATTERN_H_
Back
|
FazBrowse Home
|
New Git URL