Merge pull request #1222 from ceroytres:patch-1

pull/1224/merge
Alexander Alekhin 8 years ago
commit 009d2efb75
  1. 3
      modules/optflow/src/deepflow.cpp

@ -97,8 +97,7 @@ std::vector<Mat> OpticalFlowDeepFlow::buildPyramid( const Mat& src )
std::vector<Mat> pyramid;
pyramid.push_back(src);
Mat prev = pyramid[0];
int i = 0;
while ( i < this->maxLayers )
for( int i = 0; i < this->maxLayers; ++i)
{
Mat next; //TODO: filtering at each level?
Size nextSize((int) (prev.cols * downscaleFactor + 0.5f),

Loading…
Cancel
Save