Fixed bug in videostab sample. Fixed model size in global estimators.

This commit is contained in:
Alexey Spizhevoy
2012-04-10 09:07:30 +00:00
parent bf00eba093
commit 673f879ccd
3 changed files with 10 additions and 6 deletions

View File

@@ -262,8 +262,12 @@ int main(int argc, const char **argv)
}
if (arg("save-motions") != "no")
{
MotionModel model = stabilizer->motionEstimator()->motionModel();
stabilizer->setMotionEstimator(
new ToFileMotionWriter(arg("save-motions"), stabilizer->motionEstimator()));
stabilizer->motionEstimator()->setMotionModel(model);
}
stabilizer->setRadius(argi("radius"));
if (arg("deblur") == "yes")