22#include <opencv2/core/core.hpp>
62 public jevois::Parameter<fastopticalflow::opoint, fastopticalflow::factor,
63 fastopticalflow::thetasf, fastopticalflow::thetait,
64 fastopticalflow::thetaps, fastopticalflow::thetaov,
65 fastopticalflow::usevref>
76 void process(cv::Mat
const & src, cv::Mat & dst);
79 void onParamChange(fastopticalflow::opoint
const & param,
int const & val)
override;
80 void onParamChange(fastopticalflow::thetasf
const & param,
int const & val)
override;
81 void onParamChange(fastopticalflow::thetaps
const & param,
int const & val)
override;
82 void onParamChange(fastopticalflow::thetaov
const & param,
float const & val)
override;
Fast optical flow computation using dense inverse search.
JEVOIS_DECLARE_PARAMETER(thetait, int, "Number of gradient descent iterations, or -1 for auto", 5, ParamCateg)
Parameter.
void onParamChange(fastopticalflow::thetasf const ¶m, int const &val) override
jevois::Profiler itsProfiler
virtual ~FastOpticalFlow()
Destructor.
const float ** img_bo_pyr
const float ** img_bo_dx_pyr
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(thetaps, int, "Patch size in pixels, or -1 for auto", -1, ParamCateg)
Parameter.
const float ** img_bo_dy_pyr
void onParamChange(fastopticalflow::thetaov const ¶m, float const &val) override
JEVOIS_DECLARE_PARAMETER(usevref, bool, "Use variational refinement when true", false, ParamCateg)
Parameter.
cv::Mat * img_bo_dx_fmat_pyr
void onParamChange(fastopticalflow::opoint const ¶m, int const &val) override
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(thetasf, int, "Finest scale in the pyramid, or -1 for auto", -1, ParamCateg)
Parameter.
cv::Mat * img_bo_fmat_pyr
void onParamChange(fastopticalflow::thetaps const ¶m, int const &val) override
cv::Mat * img_bo_dy_fmat_pyr
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(thetaov, float, "Patch overlap on each scale, or -1 for auto", 0.1F, ParamCateg)
Parameter.
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(opoint, int, "Algorithm operating point", 1, jevois::Range< int >(1, 4), ParamCateg)
Parameter.
void process(cv::Mat const &src, cv::Mat &dst)
Process a greyscale image and return flow in a pre-allocated greyscale image of same with and 2x heig...
JEVOIS_DECLARE_PARAMETER(factor, float, "Factor to use when converting float velocities to byte", 25.0F, ParamCateg)
Parameter.