JeVoisBase
1.18
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
Share this page: |
|
|
|
 |
 |
|
Go to the documentation of this file.
19 #include <opencv2/video/tracking.hpp>
70 public jevois::Parameter<kalman2d::usevel, kalman2d::procnoise,
71 kalman2d::measnoise, kalman2d::postnoise>
75 Kalman2D(std::string
const & instance);
82 void set(
float x,
float y);
87 void set(
float x,
float y,
unsigned int imgwidth,
unsigned int imgheight);
96 void get(
float & x,
float & y,
float const eps = 0.01
F);
102 void get(
float & x,
float & y,
unsigned int imgwidth,
unsigned int imgheight,
float const eps = 0.01
F);
109 void get(
float & rawx,
float & rawy,
float & imgx,
float & imgy,
unsigned int imgwidth,
unsigned int imgheight,
110 float const raweps = 0.01
F,
float const imgeps = 0.01
F);
114 void onParamChange(kalman2d::usevel
const & param,
bool const & newval)
override;
115 void onParamChange(kalman2d::procnoise
const & param,
float const & newval)
override;
116 void onParamChange(kalman2d::measnoise
const & param,
float const & newval)
override;
117 void onParamChange(kalman2d::postnoise
const & param,
float const & newval)
override;
Simple component to track a moving 2D point over time using a Kalman filter.
cv::Mat itsState
(x, y, xdot, ydot)
Kalman2D(std::string const &instance)
Constructor.
virtual ~Kalman2D()
Destructor.
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(l2grad, bool, "Use more accurate L2 gradient norm if true, L1 if false", false, ParamCateg)
void onParamChange(kalman2d::usevel const ¶m, bool const &newval) override
void set(float x, float y)
Function to call each time you have a new measurement (output from a vision algorithm)
void get(float &x, float &y, float const eps=0.01F)
Function to call each time you want to get the Kalman-filtered coordinates.