Merge pull request #9328 from taketwo:example-superres-fix

This commit is contained in:
Alexander Alekhin 2017-08-10 09:59:51 +00:00
commit a5ea5888b8

View File

@ -60,7 +60,7 @@ int main(int argc, const char* argv[])
"{ s scale | 4 | Scale factor }" "{ s scale | 4 | Scale factor }"
"{ i iterations | 180 | Iteration count }" "{ i iterations | 180 | Iteration count }"
"{ t temporal | 4 | Radius of the temporal search area }" "{ t temporal | 4 | Radius of the temporal search area }"
"{ f flow | farneback | Optical flow algorithm (farneback, simple, tvl1, brox, pyrlk) }" "{ f flow | farneback | Optical flow algorithm (farneback, tvl1, brox, pyrlk) }"
"{ g gpu | false | CPU as default device, cuda for CUDA }" "{ g gpu | false | CPU as default device, cuda for CUDA }"
"{ h help | false | Print help message }" "{ h help | false | Print help message }"
); );
@ -136,7 +136,7 @@ int main(int argc, const char* argv[])
for (int i = 0;; ++i) for (int i = 0;; ++i)
{ {
cout << '[' << setw(3) << i << "] : "; cout << '[' << setw(3) << i << "] : " << flush;
Mat result; Mat result;
MEASURE_TIME(superRes->nextFrame(result)); MEASURE_TIME(superRes->nextFrame(result));