mirror of
https://github.com/gosticks/openpose.git
synced 2026-08-12 04:10:28 +00:00
28 lines
1.2 KiB
C++
28 lines
1.2 KiB
C++
#ifndef OPENPOSE_PRIVATE_TRACKING_LKPYRAMIDAL_HPP
|
|
#define OPENPOSE_PRIVATE_TRACKING_LKPYRAMIDAL_HPP
|
|
|
|
#include <opencv2/core/core.hpp> // cv::Mat, cv::Point2f
|
|
#include <openpose/core/common.hpp>
|
|
|
|
namespace op
|
|
{
|
|
void pyramidalLKCpu(
|
|
std::vector<cv::Point2f>& coordI, std::vector<cv::Point2f>& coordJ,
|
|
std::vector<cv::Mat>& pyramidImagesPrevious, std::vector<cv::Mat>& pyramidImagesCurrent,
|
|
std::vector<char>& status, const cv::Mat& imagePrevious, const cv::Mat& imageCurrent,
|
|
const int levels = 3, const int patchSize = 21);
|
|
|
|
int pyramidalLKGpu(
|
|
std::vector<cv::Point2f>& ptsI, std::vector<cv::Point2f>& ptsJ,
|
|
std::vector<char>& status, const cv::Mat& imagePrevious, const cv::Mat& imageCurrent,
|
|
const int levels = 3, const int patchSize = 21);
|
|
|
|
void pyramidalLKOcv(
|
|
std::vector<cv::Point2f>& coordI, std::vector<cv::Point2f>& coordJ,
|
|
std::vector<cv::Mat>& pyramidImagesPrevious, std::vector<cv::Mat>& pyramidImagesCurrent,
|
|
std::vector<char>& status, const cv::Mat& imagePrevious, const cv::Mat& imageCurrent,
|
|
const int levels = 3, const int patchSize = 21, const bool initFlow = false);
|
|
}
|
|
|
|
#endif // OPENPOSE_PRIVATE_TRACKING_LKPYRAMIDAL_HPP
|