Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0bdc9ce5
Commit
0bdc9ce5
authored
Mar 03, 2018
by
Davis King
Browse files
Added another rect_filter constructor.
parent
1c26be90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
dlib/filtering/kalman_filter.h
dlib/filtering/kalman_filter.h
+6
-0
dlib/filtering/kalman_filter_abstract.h
dlib/filtering/kalman_filter_abstract.h
+14
-0
No files found.
dlib/filtering/kalman_filter.h
View file @
0bdc9ce5
...
...
@@ -299,6 +299,12 @@ namespace dlib
public:
rect_filter
()
=
default
;
rect_filter
(
double
meas_noise
,
double
acc
,
double
max_meas_dev
)
:
rect_filter
(
momentum_filter
(
meas_noise
,
acc
,
max_meas_dev
))
{}
rect_filter
(
const
momentum_filter
&
filt
)
:
...
...
dlib/filtering/kalman_filter_abstract.h
View file @
0bdc9ce5
...
...
@@ -406,6 +406,20 @@ namespace dlib
- #get_bottom() == filt
!*/
rect_filter
(
double
meas_noise
,
double
acc
,
double
max_meas_dev
)
:
rect_filter
(
momentum_filter
(
meas_noise
,
acc
,
max_meas_dev
))
{}
/*!
requires
- meas_noise >= 0
- acc >= 0
- max_meas_dev >= 0
ensures
- Initializes this object with momentum_filter(meas_noise, acc, max_meas_dev)
!*/
drectangle
operator
()(
const
drectangle
&
r
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment