Commit 0bdc9ce5 authored by Davis King's avatar Davis King

Added another rect_filter constructor.

parent 1c26be90
...@@ -299,6 +299,12 @@ namespace dlib ...@@ -299,6 +299,12 @@ namespace dlib
public: public:
rect_filter() = default; 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( rect_filter(
const momentum_filter& filt const momentum_filter& filt
) : ) :
......
...@@ -406,6 +406,20 @@ namespace dlib ...@@ -406,6 +406,20 @@ namespace dlib
- #get_bottom() == filt - #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()( drectangle operator()(
const drectangle& r const drectangle& r
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment