a bug fix in stereo_match sample
authoryao <bitwangyaoyao@gmail.com>
Fri, 21 Jun 2013 06:50:08 +0000 (14:50 +0800)
committeryao <bitwangyaoyao@gmail.com>
Fri, 21 Jun 2013 06:50:08 +0000 (14:50 +0800)
samples/ocl/stereo_match.cpp

index 565744b..abe75c7 100644 (file)
@@ -192,10 +192,9 @@ void App::run()
             csbp(d_left, d_right, d_disp);
             break;
         }
-        workEnd();
-
         // Show results
         d_disp.download(disp);
+        workEnd();
         if (method != BM)
         {
             disp.convertTo(disp, 0);