Updated videostab sample
This commit is contained in:
parent
7cabfc5441
commit
bde7456256
@ -249,7 +249,7 @@ MotionInpainter::MotionInpainter()
|
|||||||
#if HAVE_OPENCV_GPU
|
#if HAVE_OPENCV_GPU
|
||||||
setOptFlowEstimator(new DensePyrLkOptFlowEstimatorGpu());
|
setOptFlowEstimator(new DensePyrLkOptFlowEstimatorGpu());
|
||||||
#else
|
#else
|
||||||
CV_Error( CV_StsNotImplemented, "Current implementation of MotionInpainter requires GPU" );
|
CV_Error(CV_StsNotImplemented, "Current implementation of MotionInpainter requires GPU");
|
||||||
#endif
|
#endif
|
||||||
setFlowErrorThreshold(1e-4f);
|
setFlowErrorThreshold(1e-4f);
|
||||||
setBorderMode(BORDER_REPLICATE);
|
setBorderMode(BORDER_REPLICATE);
|
||||||
|
@ -52,8 +52,8 @@ void printHelp()
|
|||||||
" --outlier-ratio=<float_number>\n"
|
" --outlier-ratio=<float_number>\n"
|
||||||
" Outliers ratio in motion estimation. The default is 0.5.\n"
|
" Outliers ratio in motion estimation. The default is 0.5.\n"
|
||||||
" --min-inlier-ratio=<float_number>\n"
|
" --min-inlier-ratio=<float_number>\n"
|
||||||
" Minimum inlier ratio to decide if estiamted motion is OK. The default is 0.1,\n"
|
" Minimum inlier ratio to decide if estimated motion is OK. The default is 0.1,\n"
|
||||||
" but may want to increase it.\n"
|
" but you may want to increase it.\n"
|
||||||
" -r, --radius=<int_number>\n"
|
" -r, --radius=<int_number>\n"
|
||||||
" Set smoothing radius. The default is 15.\n"
|
" Set smoothing radius. The default is 15.\n"
|
||||||
" --stdev=<float_number>\n"
|
" --stdev=<float_number>\n"
|
||||||
@ -65,7 +65,8 @@ void printHelp()
|
|||||||
" -t, --trim-ratio=<float_number>\n"
|
" -t, --trim-ratio=<float_number>\n"
|
||||||
" Set trimming ratio (from 0 to 0.5). The default is 0.\n"
|
" Set trimming ratio (from 0 to 0.5). The default is 0.\n"
|
||||||
" --est-trim=(yes|no)\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"
|
" --incl-constr=(yes|no)\n"
|
||||||
" Ensure the inclusion constraint is always satisfied. The default is no.\n"
|
" Ensure the inclusion constraint is always satisfied. The default is no.\n"
|
||||||
" --border-mode=(replicate|const)\n"
|
" --border-mode=(replicate|const)\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user