28 #ifndef _PTOPTIMIZER_H
29 #define _PTOPTIMIZER_H
62 virtual bool runAlgorithm();
69 enum Mode {AUTO, HOMOGRAPHY, RPY, RPYV, RPYVB};
74 o_maxError(maxError), o_mode(mode)
87 static std::vector<int> findInliers(
PanoramaData & pano,
int i1,
int i2,
double maxError,
91 virtual bool runAlgorithm();
118 static void autoOptimise(
PanoramaData& pano,
bool optRoll=
true);
124 autoOptimise(o_panorama);
175 smartOptimize(o_panorama);
RANSACOptimizer(PanoramaData &panorama, int i1, int i2, double maxError, Mode mode=RPY)
virtual ~RANSACOptimizer()
virtual bool runAlgorithm()
calls PTools::optimize()
virtual bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
std::vector< int > o_inliers
virtual bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
AutoOptimise(PanoramaData &panorama, bool optRoll=true)
virtual bool runAlgorithm()
calls PTools::optimize()
Pairwise ransac optimisation.
SmartOptimise(PanoramaData &panorama)
std::vector< std::set< std::string > > OptimizeVector
PTOptimizer(PanoramaData &panorama)