42 #ifndef CLFTVL1FLOW_HH_
43 #define CLFTVL1FLOW_HH_
45 #include <Base/Common/BIASpragmaStart.hh>
46 #include <OpenCLFramework/clfContext.hh>
47 #include <OpenCLFramework/clfProgram.hh>
48 #include <OpenCLFramework/clfImage2D.hh>
49 #include <OpenCLFramework/Filter/clfFilter.hh>
50 #include <OpenCLFramework/Filter/clfSimpleFilter.hh>
51 #include <OpenCLFramework/Filter/clfColorConversion.hh>
70 void SetNumberOfIterations(
unsigned int iternumber);
71 void SetSmoothness(
const float& smoothness);
102 void CreatePyramid_(std::vector<clfImage2D *> &pyramid);
106 clfImage2D *newImage_(
unsigned int w,
unsigned int h,
bool clear =
false);
109 void Warp_(
unsigned int level);
111 void ComputeFlow_(
unsigned int level);
127 std::vector<clfImage2D *> uvw_, uvwX_, uvwY_, uvw0_, uvwOld_;
128 std::vector<clfImage2D *> image2warpedt_, imageDiv_, P1_, P2_, imageCopy_, imageCopy2_;
129 std::vector<clfImage2D *> Ixyg_;
130 std::vector<clfImage2D *> pyramid1_;
131 std::vector<clfImage2D *> pyramid2_;
134 int maxComputeUnits_;
136 float sigma_, tau_, gamma_, lambda_;
138 unsigned int maxIterations_;
139 unsigned int levels_;
143 #include <Base/Common/BIASpragmaEnd.hh>
TVL1 optical flow opencl implementation.