1. Let btvRegWeights to be constant per process call.

2. Let Farneback to be the default optical flow method.
3. Fix a timing method bug for ocl path.
4. Remove useless finish operation in farneback
5. Refactor buffer usage.
This commit is contained in:
peng xiao
2013-10-21 10:21:37 +08:00
parent 1eb322fa5d
commit 7285341083
4 changed files with 84 additions and 165 deletions

View File

@@ -221,7 +221,11 @@ int main(int argc, const char* argv[])
if(useOcl)
{
MEASURE_TIME(superRes->nextFrame(result_));
MEASURE_TIME(
{
superRes->nextFrame(result_);
ocl::finish();
});
}
else
#endif