Class for visualizing Kalman filter. More...
#include <Kalman.h>
Public Member Functions | |
KalmanVisualize (Kalman *_kalman, KalmanSensor *_sensor) | |
Constructor for full Kalman implementation. | |
KalmanVisualize (KalmanCore *_kalman, KalmanSensorCore *_sensor) | |
Constructor for core Kalman implementation (not all visualizations possible) | |
void | show () |
Show the genrated visualization image. | |
void | update_post () |
Update the visualization image - call this after the Kalman's predict_update. | |
void | update_pre () |
Update the visualization image - call this before the Kalman's predict_update. | |
~KalmanVisualize () | |
Destructor. | |
Static Public Member Functions | |
static void | out_matrix (CvMat *m, char *name) |
Helper method for outputting matrices (for debug purposes) | |
Private Member Functions | |
void | img_matrix (CvMat *mat, int top, int left) |
Add matrix to the image. | |
void | Init () |
Init everything. Called from constructors. | |
Private Attributes | |
IplImage * | img |
Image collecting visualization of the Kalman filter. | |
IplImage * | img_legend |
Image to show. | |
int | img_scale |
visualization scale before show | |
IplImage * | img_show |
Image to show. | |
KalmanCore * | kalman |
Kalman * | kalman_ext |
int | m |
int | n |
KalmanSensorCore * | sensor |
KalmanSensor * | sensor_ext |
Class for visualizing Kalman filter.
Usage:
KalmanVisualize kvis(&kalman, &sensor); ... kvis.update_pre(); kalman.predict_update(&sensor); kvis.update_post(); kvis.show();
alvar::KalmanVisualize::KalmanVisualize | ( | Kalman * | _kalman, |
KalmanSensor * | _sensor | ||
) |
Constructor for full Kalman implementation.
Definition at line 381 of file Kalman.cpp.
alvar::KalmanVisualize::KalmanVisualize | ( | KalmanCore * | _kalman, |
KalmanSensorCore * | _sensor | ||
) |
Constructor for core Kalman implementation (not all visualizations possible)
Definition at line 389 of file Kalman.cpp.
Destructor.
Definition at line 397 of file Kalman.cpp.
void alvar::KalmanVisualize::img_matrix | ( | CvMat * | mat, |
int | top, | ||
int | left | ||
) | [private] |
Add matrix to the image.
Definition at line 297 of file Kalman.cpp.
void alvar::KalmanVisualize::Init | ( | ) | [private] |
Init everything. Called from constructors.
Definition at line 328 of file Kalman.cpp.
void alvar::KalmanVisualize::out_matrix | ( | CvMat * | m, |
char * | name | ||
) | [static] |
Helper method for outputting matrices (for debug purposes)
Definition at line 356 of file Kalman.cpp.
void alvar::KalmanVisualize::show | ( | ) |
Show the genrated visualization image.
Definition at line 435 of file Kalman.cpp.
void alvar::KalmanVisualize::update_post | ( | ) |
Update the visualization image - call this after the Kalman's predict_update.
Definition at line 409 of file Kalman.cpp.
void alvar::KalmanVisualize::update_pre | ( | ) |
Update the visualization image - call this before the Kalman's predict_update.
Definition at line 401 of file Kalman.cpp.
IplImage* alvar::KalmanVisualize::img [private] |
IplImage* alvar::KalmanVisualize::img_legend [private] |
int alvar::KalmanVisualize::img_scale [private] |
IplImage* alvar::KalmanVisualize::img_show [private] |
KalmanCore* alvar::KalmanVisualize::kalman [private] |
Kalman* alvar::KalmanVisualize::kalman_ext [private] |
int alvar::KalmanVisualize::m [private] |
int alvar::KalmanVisualize::n [private] |
KalmanSensorCore* alvar::KalmanVisualize::sensor [private] |
KalmanSensor* alvar::KalmanVisualize::sensor_ext [private] |