diff options
author | cathook <b01902109@csie.ntu.edu.tw> | 2014-06-19 07:25:48 +0800 |
---|---|---|
committer | cathook <b01902109@csie.ntu.edu.tw> | 2014-06-19 07:25:48 +0800 |
commit | fe926756145c5e5cf5f315af0acdbfd85ba27543 (patch) | |
tree | 4d75f94b87fd6d60262f2377d92f5896faf1be7d /meowpp.test/inc | |
parent | b2b55d8c642524274d8115d5b1863e1a40715887 (diff) | |
download | meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.gz meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.bz2 meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.lz meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.xz meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.zst meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.zip |
x
Diffstat (limited to 'meowpp.test/inc')
-rw-r--r-- | meowpp.test/inc/autostitch.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meowpp.test/inc/autostitch.h b/meowpp.test/inc/autostitch.h index 38e809f..469889f 100644 --- a/meowpp.test/inc/autostitch.h +++ b/meowpp.test/inc/autostitch.h @@ -45,13 +45,12 @@ public: std::vector<std::vector<meow::FeaturePoint<double,double> > >const& fp); }; -class MyRansacCheck{ +class MyRansacCheck { private: static double threshold; std::vector<meow::Vector<double> > const* _from; std::vector<meow::Vector<double> > const* _to ; - meow::Vector3D<double> _vX; - meow::Vector3D<double> _vY; + double a_, b_, c_, d_, e_, f_, A_, B_; public: static meow::Usage usage(); static bool usage(meow::Usage const& usg); @@ -60,13 +59,12 @@ public: MyRansacCheck(std::vector<meow::Vector<double> > const* __from, std::vector<meow::Vector<double> > const* __to); ~MyRansacCheck(); - std::pair<meow::Vector3D<double>, meow::Vector3D<double> > vCalc( - std::vector<meow::FeaturePointIndexPair> const& __sample - ) const; + meow::Vector<double> vCalc(std::vector<meow::FeaturePointIndexPair> const& __sample) const; void rememberVCalc(std::vector<meow::FeaturePointIndexPair> const& __sample); bool ok(meow::FeaturePointIndexPair const& __m) const; double operator()(std::vector<meow::FeaturePointIndexPair> const& __sample, std::vector<meow::FeaturePointIndexPair> const& __data) const; + bool check(double, double); meow::Vector2D<double> to(meow::Vector2D<double> const& __v) const; }; |