27 #include <hugin_config.h>
40 #define _STLP_VERBOSE_AUTO_LINK
51 namespace HuginBase {
namespace PTools {
57 char * p=setlocale(LC_ALL,NULL);
58 char * oldlocale=strdup(p);
59 setlocale(LC_ALL,
"C");
61 std::ostringstream scriptbuf;
65 std::set<std::string> opt;
69 optVec.push_back(opt);
75 script = strdup(scriptbuf.str().c_str());
77 if (ParseScript( script, &ainf ) == 0)
79 if( CheckParams( &ainf ) == 0 )
82 SetGlobalPtr( &ainf );
86 DisposeAlignInfo(&ainf);
88 setlocale(LC_ALL,oldlocale);
virtual void printPanoramaScript(std::ostream &o, const OptimizeVector &optvars, const PanoramaOptions &options, const UIntSet &imgs, bool forPTOptimizer, const std::string &stripPrefix="") const =0
create an optimizer script
std::set< unsigned int > UIntSet
virtual void updateCtrlPointErrors(const CPVector &controlPoints)=0
update control points distances.
virtual const PanoramaOptions & getOptions() const =0
returns the options for this panorama
virtual std::size_t getNrOfCtrlPoints() const =0
number of control points
std::vector< std::set< std::string > > OptimizeVector
void fill_set(_Container &c, typename _Container::key_type begin, typename _Container::key_type end)
virtual std::size_t getNrOfImages() const =0
number of images.