#include <dense_lk.h>
Public Member Functions | |
std::vector< cv::Mat > | baseLK (cv::Mat &cur_bw, cv::Mat &prev_bw) |
DenseLKFlow (int win_size=5, int num_levels=4) | |
cv::Mat | expand (cv::Mat &input) |
std::vector< cv::Mat > | hierarchy (cv::Mat &f2, cv::Mat &f1) |
std::vector< cv::Mat > | operator() (cv::Mat &cur_frame, cv::Mat &prev_frame, bool color_in=true) |
cv::Mat | reduce (cv::Mat &input) |
void | setNumLevels (int num_levels) |
void | setWinSize (int win_size) |
cv::Mat | smooth (cv::Mat &input, int n=1) |
cv::Mat | warp (cv::Mat &i2, cv::Mat &vx, cv::Mat &vy) |
virtual | ~DenseLKFlow () |
Public Attributes | |
double | r_thresh_ |
Protected Attributes | |
cv::Mat | dx_kernel_ |
cv::Mat | dy_kernel_ |
cv::Mat | g_kernel_ |
int | max_level_ |
cv::Mat | optic_g_kernel_ |
int | win_size_ |
Definition at line 48 of file dense_lk.h.
cpl_visual_features::DenseLKFlow::DenseLKFlow | ( | int | win_size = 5 , |
int | num_levels = 4 |
||
) |
Definition at line 41 of file dense_lk.cpp.
cpl_visual_features::DenseLKFlow::~DenseLKFlow | ( | ) | [virtual] |
Definition at line 52 of file dense_lk.cpp.
std::vector< cv::Mat > cpl_visual_features::DenseLKFlow::baseLK | ( | cv::Mat & | cur_bw, |
cv::Mat & | prev_bw | ||
) |
Definition at line 109 of file dense_lk.cpp.
cv::Mat cpl_visual_features::DenseLKFlow::expand | ( | cv::Mat & | input | ) |
Definition at line 178 of file dense_lk.cpp.
std::vector< cv::Mat > cpl_visual_features::DenseLKFlow::hierarchy | ( | cv::Mat & | f2, |
cv::Mat & | f1 | ||
) |
Definition at line 78 of file dense_lk.cpp.
std::vector< cv::Mat > cpl_visual_features::DenseLKFlow::operator() | ( | cv::Mat & | cur_frame, |
cv::Mat & | prev_frame, | ||
bool | color_in = true |
||
) |
Definition at line 56 of file dense_lk.cpp.
cv::Mat cpl_visual_features::DenseLKFlow::reduce | ( | cv::Mat & | input | ) |
Definition at line 171 of file dense_lk.cpp.
void cpl_visual_features::DenseLKFlow::setNumLevels | ( | int | num_levels | ) |
Definition at line 243 of file dense_lk.cpp.
void cpl_visual_features::DenseLKFlow::setWinSize | ( | int | win_size | ) |
Definition at line 238 of file dense_lk.cpp.
cv::Mat cpl_visual_features::DenseLKFlow::smooth | ( | cv::Mat & | input, |
int | n = 1 |
||
) |
Definition at line 185 of file dense_lk.cpp.
cv::Mat cpl_visual_features::DenseLKFlow::warp | ( | cv::Mat & | i2, |
cv::Mat & | vx, | ||
cv::Mat & | vy | ||
) |
Definition at line 203 of file dense_lk.cpp.
cv::Mat cpl_visual_features::DenseLKFlow::dx_kernel_ [protected] |
Definition at line 73 of file dense_lk.h.
cv::Mat cpl_visual_features::DenseLKFlow::dy_kernel_ [protected] |
Definition at line 74 of file dense_lk.h.
cv::Mat cpl_visual_features::DenseLKFlow::g_kernel_ [protected] |
Definition at line 75 of file dense_lk.h.
int cpl_visual_features::DenseLKFlow::max_level_ [protected] |
Definition at line 72 of file dense_lk.h.
cv::Mat cpl_visual_features::DenseLKFlow::optic_g_kernel_ [protected] |
Definition at line 76 of file dense_lk.h.
Definition at line 69 of file dense_lk.h.
int cpl_visual_features::DenseLKFlow::win_size_ [protected] |
Definition at line 71 of file dense_lk.h.