视频稳定模块包含一组函数和类,可用于解决视频稳定问题。实现了几种方法,其中大部分在论文 [193] 和 [116] 中进行了描述。然而,与原始论文方法相比,也存在一些扩展和偏差。
参考文献
- "Full-Frame Video Stabilization with Motion Inpainting" Yasuyuki Matsushita, Eyal Ofek, Weina Ge, Xiaoou Tang, Senior Member, and Heung-Yeung Shum
- "Auto-Directed Video Stabilization with Robust L1 Optimal Camera Paths" Matthias Grundmann, Vivek Kwatra, Irfan Essa
|
| | cv::videostab::ColorInpainter::ColorInpainter (int method=INPAINT_TELEA, double radius=2.) |
| |
| template<typename T > |
| const T & | cv::videostab::at (int idx, const std::vector< T > &items) |
| |
| template<typename T > |
| T & | cv::videostab::at (int idx, std::vector< T > &items) |
| |
| float | cv::videostab::calcBlurriness (const Mat &frame) |
| |
| void | cv::videostab::calcFlowMask (const Mat &flowX, const Mat &flowY, const Mat &errors, float maxError, const Mat &mask0, const Mat &mask1, Mat &flowMask) |
| |
| void | cv::videostab::completeFrameAccordingToFlow (const Mat &flowMask, const Mat &flowX, const Mat &flowY, const Mat &frame1, const Mat &mask1, float distThresh, Mat &frame0, Mat &mask0) |
| |
◆ ColorInpainter()
| cv::videostab::ColorInpainter::ColorInpainter |
( |
int | method = INPAINT_TELEA, |
|
|
double | radius = 2. ) |
|
内联 |
◆ at() [1/2]
template<typename T >
| const T & cv::videostab::at |
( |
int | idx (索引), |
|
|
const std::vector< T > & | items ) |
|
内联 |
◆ at() [2/2]
template<typename T >
| T & cv::videostab::at |
( |
int | idx (索引), |
|
|
std::vector< T > & | items ) |
|
内联 |
◆ calcBlurriness()
| float cv::videostab::calcBlurriness |
( |
const Mat & | frame | ) |
|
◆ calcFlowMask()
| void cv::videostab::calcFlowMask |
( |
const Mat & | flowX, |
|
|
const Mat & | flowY, |
|
|
const Mat & | errors, |
|
|
float | maxError, |
|
|
const Mat & | mask0, |
|
|
const Mat & | mask1, |
|
|
Mat & | flowMask ) |
◆ completeFrameAccordingToFlow()
| void cv::videostab::completeFrameAccordingToFlow |
( |
const Mat & | flowMask, |
|
|
const Mat & | flowX, |
|
|
const Mat & | flowY, |
|
|
const Mat & | frame1, |
|
|
const Mat & | mask1, |
|
|
float | distThresh, |
|
|
Mat & | frame0, |
|
|
Mat & | mask0 ) |