Added load and save motion args into videostab sample
This commit is contained in:
@@ -278,6 +278,16 @@ Mat TwoPassStabilizer::nextFrame()
|
||||
}
|
||||
|
||||
|
||||
vector<Mat> TwoPassStabilizer::motions() const
|
||||
{
|
||||
if (frameCount_ == 0)
|
||||
return vector<Mat>();
|
||||
vector<Mat> res(frameCount_ - 1);
|
||||
copy(motions_.begin(), motions_.begin() + frameCount_ - 1, res.begin());
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
void TwoPassStabilizer::resetImpl()
|
||||
{
|
||||
isPrePassDone_ = false;
|
||||
|
Reference in New Issue
Block a user