42 #include <pano13/filter.h>
75 parser.AddSwitch(
"h",
"help",
"shows this help message");
119 std::cerr <<
"could not open script : " << file.GetFullPath().char_str() << std::endl;
124 std::cerr <<
"could not parse script: " << file.GetFullPath().char_str() << std::endl;
143 for(
unsigned i=0;
i<cps.size();
i++)
154 std::cout << std::endl <<
"Written output to " <<
output << std::endl;
Base class for control point creators.
class for storing settings of different control point generators
unsigned int GetDefaultGenerator()
return index of default generator (this one is used for assistent)
void Read(wxConfigBase *config=wxConfigBase::Get(), wxString loadFromFile=wxEmptyString)
read the settings of different cp generators from config
void Write(wxConfigBase *config=wxConfigBase::Get())
writes the settings of different cp generators to config
ArraySettings settings
array which stores the different autopano settings
Memento class for a Panorama object.
bool loadPTScript(std::istream &i, int &ptoVersion, const std::string &prefix="")
load a Hugin file
void setMemento(const PanoramaMemento &memento)
set the internal state
unsigned int addCtrlPoint(const ControlPoint &point)
add a new control point.
bool WritePTOFile(const std::string &filename, const std::string &prefix="")
write data to given pto file
std::size_t getNrOfImages() const
number of images.
virtual bool OnCmdLineParsed(wxCmdLineParser &parser)
processes the command line parameters
virtual void OnInitCmdLine(wxCmdLineParser &parser)
set the parameters for the command line parser
virtual int OnRun()
the main procedure of iCPApp
CPDetectorSetting m_cpsetting
void ReadDetectorConfig()
read the CPDetectorConfig from file/registry
#define HUGIN_ASS_NCONTROLPOINTS
static int ptProgress(int command, char *argument)
static int ptinfoDlg(int command, char *argument)
std::vector< ControlPoint > CPVector
std::set< unsigned int > UIntSet
std::string getPathPrefix(const std::string &filename)
Get the path to a filename.
void fill_set(_Container &c, typename _Container::key_type begin, typename _Container::key_type end)
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.