From 4c44ccc3c9a0e930670d8cb98f3515c49290c4f4 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Tue, 17 Apr 2012 09:30:16 +0000 Subject: [PATCH] Removed unnecessary code (videostab) --- .../videostab/include/opencv2/videostab/stabilizer.hpp | 3 --- modules/videostab/src/stabilizer.cpp | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/modules/videostab/include/opencv2/videostab/stabilizer.hpp b/modules/videostab/include/opencv2/videostab/stabilizer.hpp index 3df22b4cfc..a14fbb63ad 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 8520b31626..141ddae9f4 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_)