From bde7456256fa8aa34668094c6fb247b52a575a5c Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Tue, 20 Mar 2012 06:52:52 +0000 Subject: [PATCH] Updated videostab sample --- modules/videostab/src/inpainting.cpp | 2 +- samples/cpp/videostab.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/videostab/src/inpainting.cpp b/modules/videostab/src/inpainting.cpp index 9b6a500..db12cb3 100644 --- a/modules/videostab/src/inpainting.cpp +++ b/modules/videostab/src/inpainting.cpp @@ -249,7 +249,7 @@ MotionInpainter::MotionInpainter() #if HAVE_OPENCV_GPU setOptFlowEstimator(new DensePyrLkOptFlowEstimatorGpu()); #else - CV_Error( CV_StsNotImplemented, "Current implementation of MotionInpainter requires GPU" ); + CV_Error(CV_StsNotImplemented, "Current implementation of MotionInpainter requires GPU"); #endif setFlowErrorThreshold(1e-4f); setBorderMode(BORDER_REPLICATE); diff --git a/samples/cpp/videostab.cpp b/samples/cpp/videostab.cpp index 49d8d81..cd26f7d 100644 --- a/samples/cpp/videostab.cpp +++ b/samples/cpp/videostab.cpp @@ -52,8 +52,8 @@ void printHelp() " --outlier-ratio=\n" " Outliers ratio in motion estimation. The default is 0.5.\n" " --min-inlier-ratio=\n" - " Minimum inlier ratio to decide if estiamted motion is OK. The default is 0.1,\n" - " but may want to increase it.\n" + " Minimum inlier ratio to decide if estimated motion is OK. The default is 0.1,\n" + " but you may want to increase it.\n" " -r, --radius=\n" " Set smoothing radius. The default is 15.\n" " --stdev=\n" @@ -65,7 +65,8 @@ void printHelp() " -t, --trim-ratio=\n" " Set trimming ratio (from 0 to 0.5). The default is 0.\n" " --est-trim=(yes|no)\n" - " Estimate trim ratio automatically. The default is yes.\n" + " Estimate trim ratio automatically. The default is yes (that leads to two passes,\n" + " you can turn it off if you want to use one pass only).\n" " --incl-constr=(yes|no)\n" " Ensure the inclusion constraint is always satisfied. The default is no.\n" " --border-mode=(replicate|const)\n" -- 2.7.4