aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp.test/inc/autostitch.h
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp.test/inc/autostitch.h')
-rw-r--r--meowpp.test/inc/autostitch.h10
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;
};