diff --git a/modules/videostab/include/opencv2/videostab/stabilizer.hpp b/modules/videostab/include/opencv2/videostab/stabilizer.hpp index 3df22b4cf..a14fbb63a 100644 --- a/modules/videostab/include/opencv2/videostab/stabilizer.hpp +++ b/modules/videostab/include/opencv2/videostab/stabilizer.hpp @@ -167,9 +167,6 @@ public: virtual void reset(); virtual Mat nextFrame(); - // available after pre-pass, before it's empty - std::vector motions() const; - private: void runPrePassIfNecessary(); diff --git a/modules/videostab/src/stabilizer.cpp b/modules/videostab/src/stabilizer.cpp index 8520b3162..141ddae9f 100644 --- a/modules/videostab/src/stabilizer.cpp +++ b/modules/videostab/src/stabilizer.cpp @@ -317,16 +317,6 @@ Mat TwoPassStabilizer::nextFrame() } -vector TwoPassStabilizer::motions() const -{ - if (frameCount_ == 0) - return vector(); - vector res(frameCount_ - 1); - copy(motions_.begin(), motions_.begin() + frameCount_ - 1, res.begin()); - return res; -} - - void TwoPassStabilizer::runPrePassIfNecessary() { if (!isPrePassDone_)