Commit ada63d18 authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

Updated videostab sample

parent 536d36b0
...@@ -66,7 +66,7 @@ void printHelp() ...@@ -66,7 +66,7 @@ void printHelp()
cout << "OpenCV video stabilizer.\n" cout << "OpenCV video stabilizer.\n"
"Usage: videostab <file_path> [arguments]\n\n" "Usage: videostab <file_path> [arguments]\n\n"
"Arguments:\n" "Arguments:\n"
" -m, --model=(transl|transl_and_scale|linear_sim|affine|homography)\n" " -m, --model=(transl|transl_and_scale|similarity|affine|homography)\n"
" Set motion model. The default is affine.\n" " Set motion model. The default is affine.\n"
" --subset=(<int_number>|auto)\n" " --subset=(<int_number>|auto)\n"
" Number of random samples per one motion hypothesis. The default is auto.\n" " Number of random samples per one motion hypothesis. The default is auto.\n"
...@@ -130,7 +130,7 @@ void printHelp() ...@@ -130,7 +130,7 @@ void printHelp()
" Perform wobble suppression. The default is no.\n" " Perform wobble suppression. The default is no.\n"
" --ws-period=<int_number>\n" " --ws-period=<int_number>\n"
" Set wobble suppression period. The default is 30.\n" " Set wobble suppression period. The default is 30.\n"
" --ws-model=(transl|transl_and_scale|linear_sim|affine|homography)\n" " --ws-model=(transl|transl_and_scale|similarity|affine|homography)\n"
" Set wobble suppression motion model (must have more DOF than motion \n" " Set wobble suppression motion model (must have more DOF than motion \n"
" estimation model). The default is homography.\n" " estimation model). The default is homography.\n"
" --ws-subset=(<int_number>|auto)\n" " --ws-subset=(<int_number>|auto)\n"
...@@ -281,7 +281,7 @@ int main(int argc, const char **argv) ...@@ -281,7 +281,7 @@ int main(int argc, const char **argv)
est = new PyrLkRobustMotionEstimator(MM_TRANSLATION); est = new PyrLkRobustMotionEstimator(MM_TRANSLATION);
else if (arg("ws-model") == "transl_and_scale") else if (arg("ws-model") == "transl_and_scale")
est = new PyrLkRobustMotionEstimator(MM_TRANSLATION_AND_SCALE); est = new PyrLkRobustMotionEstimator(MM_TRANSLATION_AND_SCALE);
else if (arg("ws-model") == "linear_sim") else if (arg("ws-model") == "similarity")
est = new PyrLkRobustMotionEstimator(MM_SIMILARITY); est = new PyrLkRobustMotionEstimator(MM_SIMILARITY);
else if (arg("ws-model") == "affine") else if (arg("ws-model") == "affine")
est = new PyrLkRobustMotionEstimator(MM_AFFINE); est = new PyrLkRobustMotionEstimator(MM_AFFINE);
...@@ -314,7 +314,7 @@ int main(int argc, const char **argv) ...@@ -314,7 +314,7 @@ int main(int argc, const char **argv)
est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION); est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION);
else if (arg("ws-model") == "transl_and_scale") else if (arg("ws-model") == "transl_and_scale")
est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION_AND_SCALE); est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION_AND_SCALE);
else if (arg("ws-model") == "linear_sim") else if (arg("ws-model") == "similarity")
est = new PyrLkRobustMotionEstimatorGpu(MM_SIMILARITY); est = new PyrLkRobustMotionEstimatorGpu(MM_SIMILARITY);
else if (arg("ws-model") == "affine") else if (arg("ws-model") == "affine")
est = new PyrLkRobustMotionEstimatorGpu(MM_AFFINE); est = new PyrLkRobustMotionEstimatorGpu(MM_AFFINE);
...@@ -377,7 +377,7 @@ int main(int argc, const char **argv) ...@@ -377,7 +377,7 @@ int main(int argc, const char **argv)
est = new PyrLkRobustMotionEstimator(MM_TRANSLATION); est = new PyrLkRobustMotionEstimator(MM_TRANSLATION);
else if (arg("model") == "transl_and_scale") else if (arg("model") == "transl_and_scale")
est = new PyrLkRobustMotionEstimator(MM_TRANSLATION_AND_SCALE); est = new PyrLkRobustMotionEstimator(MM_TRANSLATION_AND_SCALE);
else if (arg("model") == "linear_sim") else if (arg("model") == "similarity")
est = new PyrLkRobustMotionEstimator(MM_SIMILARITY); est = new PyrLkRobustMotionEstimator(MM_SIMILARITY);
else if (arg("model") == "affine") else if (arg("model") == "affine")
est = new PyrLkRobustMotionEstimator(MM_AFFINE); est = new PyrLkRobustMotionEstimator(MM_AFFINE);
...@@ -409,7 +409,7 @@ int main(int argc, const char **argv) ...@@ -409,7 +409,7 @@ int main(int argc, const char **argv)
est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION); est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION);
else if (arg("ws-model") == "transl_and_scale") else if (arg("ws-model") == "transl_and_scale")
est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION_AND_SCALE); est = new PyrLkRobustMotionEstimatorGpu(MM_TRANSLATION_AND_SCALE);
else if (arg("ws-model") == "linear_sim") else if (arg("ws-model") == "similarity")
est = new PyrLkRobustMotionEstimatorGpu(MM_SIMILARITY); est = new PyrLkRobustMotionEstimatorGpu(MM_SIMILARITY);
else if (arg("ws-model") == "affine") else if (arg("ws-model") == "affine")
est = new PyrLkRobustMotionEstimatorGpu(MM_AFFINE); est = new PyrLkRobustMotionEstimatorGpu(MM_AFFINE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment