Home | History | Annotate | Download | only in cpp

Lines Matching defs:arg

15 #define arg(name) cmd.get<string>(name)
197 Ptr<MotionEstimatorRansacL2> est = makePtr<MotionEstimatorRansacL2>(motionModel(arg(prefix + "model")));
200 if (arg(prefix + "subset") != "auto")
202 if (arg(prefix + "thresh") != "auto")
210 if (arg(prefix + "local-outlier-rejection") == "yes")
214 if (arg(prefix + "thresh") != "auto")
248 Ptr<MotionEstimatorL1> est = makePtr<MotionEstimatorL1>(motionModel(arg(prefix + "model")));
251 if (arg(prefix + "local-outlier-rejection") == "yes")
255 if (arg(prefix + "thresh") != "auto")
346 if (arg("gpu") == "yes")
359 string inputPath = arg(0);
367 if (arg("fps") == "auto")
375 if (arg("lin-prog-motion-est") == "yes")
376 motionEstBuilder.reset(new MotionEstimatorL1Builder(cmd, arg("gpu") == "yes"));
378 motionEstBuilder.reset(new MotionEstimatorRansacL2Builder(cmd, arg("gpu") == "yes"));
381 if (arg("ws-lp") == "yes")
382 wsMotionEstBuilder.reset(new MotionEstimatorL1Builder(cmd, arg
384 wsMotionEstBuilder.reset(new MotionEstimatorRansacL2Builder(cmd, arg("gpu") == "yes", "ws-"));
388 arg("est-trim") == "yes" || arg("wobble-suppress") == "yes" || arg("lin-prog-stab") == "yes";
396 twoPassStabilizer->setEstimateTrimRatio(arg("est-trim") == "yes");
400 if (arg("lin-prog-stab") == "yes")
404 stab->setTrimRatio(arg("lps-trim-ratio") == "auto" ? argf("trim-ratio") : argf("lps-trim-ratio"));
411 else if (arg("stdev") == "auto")
418 if (arg("wobble-suppress") == "yes")
421 if (arg("gpu") == "yes")
433 if (arg("load-motions2") != "no")
435 ws->setMotionEstimator(makePtr<FromFileMotionReader>(arg("load-motions2")));
438 if (arg("save-motions2") != "no")
440 ws->setMotionEstimator(makePtr<ToFileMotionWriter>(arg("save-motions2"), ws->motionEstimator()));
451 if (arg("stdev") == "auto")
464 if (arg("load-motions") != "no")
466 stabilizer->setMotionEstimator(makePtr<FromFileMotionReader>(arg("load-motions")));
469 if (arg("save-motions") != "no")
471 stabilizer->setMotionEstimator(makePtr<ToFileMotionWriter>(arg("save-motions"), stabilizer->motionEstimator()));
478 if (arg("deblur") == "yes")
488 stabilizer->setCorrectionForInclusion(arg("incl-constr") == "yes");
490 if (arg("border-mode") == "reflect")
492 else if (arg("border-mode") == "replicate")
494 else if (arg("border-mode") == "const")
503 if (arg("mosaic") == "yes")
509 if (arg("motion-inpaint") == "yes")
515 if (arg("color-inpaint") == "average")
517 else if (arg("color-inpaint") == "ns")
519 else if (arg("color-inpaint") == "telea")
521 else if (arg("color-inpaint") != "no")
522 throw runtime_error("unknown color inpainting method: " + arg("color-inpaint"));
529 if (arg("output") != "no")
530 outputPath = arg("output");