26 #ifndef _WXPANOCOMMAND__H
27 #define _WXPANOCOMMAND__H
41 bool operator()(
const std::string & file1,
const std::string & file2)
54 :
PanoCommand(pano), files(newfiles), m_preferredLensType(preferredLensType)
57 virtual std::string
getName()
const {
return "add images"; };
59 std::vector<std::string> files;
70 :
PanoCommand(p), filename(filename), prefix(prefix), markAsOptimized(markAsOptimized)
72 m_clearDirty = clearDirty;
75 virtual std::string
getName()
const {
return "load project"; };
77 const std::string filename;
90 virtual std::string
getName()
const {
return "new project"; };
103 virtual std::string getName()
const {
return "apply template"; };
113 :
PanoCommand(p), img1(i1), img2(i2), dx(0), dy(0), scale(scale), cornerThreshold(threshold)
117 virtual std::string getName()
const {
return "add control point"; };
119 unsigned int img1, img2, dx, dy;
133 virtual std::string getName()
const {
return "python script"; };
135 std::string m_scriptFile;
141 #endif // _WXPANOCOMMAND__H
Base class for all panorama commands.
start a new project, reset options to values in preferences
wxAddCtrlPointGridCmd(HuginBase::Panorama &p, unsigned int i1, unsigned int i2, double scale, double threshold)
virtual std::string getName() const
returns the name of the command
virtual std::string getName() const
returns the name of the command
const bool markAsOptimized
apply a template to a panorama object
wxAddImagesCmd(HuginBase::Panorama &pano, const std::vector< std::string > &newfiles, const int preferredLensType=-1)
wxLoadPTProjectCmd(HuginBase::Panorama &p, const std::string &filename, const std::string &prefix="", const bool markAsOptimized=false, const bool clearDirty=true)
virtual std::string getName() const
returns the name of the command
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
add image(s) to a panorama
dump the current project and load a new one.
bool operator()(const std::string &file1, const std::string &file2)
wxNewProjectCmd(HuginBase::Panorama &p)
wxApplyTemplateCmd(HuginBase::Panorama &p, std::istream &i)