Commit 009d2efb authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1222 from ceroytres:patch-1

parents 6f4179d4 fbbda575
...@@ -97,8 +97,7 @@ std::vector<Mat> OpticalFlowDeepFlow::buildPyramid( const Mat& src ) ...@@ -97,8 +97,7 @@ std::vector<Mat> OpticalFlowDeepFlow::buildPyramid( const Mat& src )
std::vector<Mat> pyramid; std::vector<Mat> pyramid;
pyramid.push_back(src); pyramid.push_back(src);
Mat prev = pyramid[0]; Mat prev = pyramid[0];
int i = 0; for( int i = 0; i < this->maxLayers; ++i)
while ( i < this->maxLayers )
{ {
Mat next; //TODO: filtering at each level? Mat next; //TODO: filtering at each level?
Size nextSize((int) (prev.cols * downscaleFactor + 0.5f), Size nextSize((int) (prev.cols * downscaleFactor + 0.5f),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment