32static void usage(
const char* name)
34 std::cout << name <<
": apply template" << std::endl
37 <<
"Usage: " << name <<
" [options] input.pto" << std::endl
39 <<
" Options:" << std::endl
40 <<
" -o, --output=file.pto Output Hugin PTO file." << std::endl
41 <<
" Default: <filename>_template.pto" << std::endl
42 <<
" --template=template.pto Apply the given template file" << std::endl
43 <<
" -h, --help Shows this help" << std::endl
130 std::cerr <<
"Error: template expects " << newPano.
getNrOfImages() <<
" images," << std::endl
131 <<
" current project contains " << pano.
getNrOfImages() <<
" images" << std::endl
132 <<
" Could not apply template" << std::endl;
170 std::cout << std::endl <<
"Written project file " <<
output << std::endl;
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
void setCtrlPoints(const CPVector &points)
set all control points (Ippei: Is this supposed to be 'add' method?)
bool ReadPTOFile(const std::string &filename, const std::string &prefix="")
read pto file from the given filename into Panorama object it does some checks on the file and issues...
SrcPanoImage getSrcImage(unsigned imgNr) const
get a description of a source image
void setSrcImage(unsigned int nr, const SrcPanoImage &img)
set input image parameters
const CPVector & getCtrlPoints() const
get all control point of this Panorama
virtual void updateVariables(const VariableMapVector &vars)
Set the variables.
bool WritePTOFile(const std::string &filename, const std::string &prefix="")
write data to given pto file
std::size_t getNrOfImages() const
number of images.
All variables of a source image.
void resize(const vigra::Size2D &size, VariableMap *potentialLinkedVars)
"resize" image, adjusts all distortion coefficients for usage with a source image of size size potent...
std::vector< VariableMap > VariableMapVector
std::string GetHuginVersion()
return a string with version numbers
bool FileExists(const std::string &filename)
checks if file exists
std::string GetOutputFilename(const std::string &out, const std::string &in, const std::string &suffix)
construct output filename, if ouput is known return this value otherwise use the input filename and a...
std::string stripPath(const std::string &filename)
remove the path of a filename (mainly useful for gui display of filenames)
std::string getPathPrefix(const std::string &filename)
Get the path to a filename.
int main(int argc, char *argv[])
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.