34 #ifndef __usMotionEstimation_h_
35 #define __usMotionEstimation_h_
42 #include <visp3/ustk_core/usConfig.h>
44 #if defined(USTK_HAVE_ARMADILLO) && (ARMA_VERSION_MAJOR > 6) && (ARMA_VERSION_MAJOR > 700)
50 #include <visp3/core/vpMatrix.h>
51 #include <visp3/ustk_core/usImageRF2D.h>
74 class VISP_EXPORT usMotionEstimation
78 virtual ~usMotionEstimation();
79 void init(mat M1, mat M2,
int blk_w,
int blk_h,
int sr_w,
int sr_h);
83 vec FullSearch(mat block,
int xc,
int yc,
int sr_w,
int sr_h);
84 vec TaylorApp(mat B1, mat B2);
85 mat xDifferential(mat input);
86 mat yDifferential(mat input);
87 mat MedianFilt2D(mat M,
int kw,
int kh);
88 mat getU(
void) {
return m_U; }
89 mat getV(
void) {
return m_V; }
90 vpMatrix getU_vp(
void) {
return convert_mat2vpMatrix(m_U); }
91 vpMatrix getV_vp(
void) {
return convert_mat2vpMatrix(m_V); }
92 void saveU(
const char *t_s);
93 void saveV(
const char *t_s);
95 vpMatrix convert_mat2vpMatrix(mat vI);