34static void usage(
const char* name)
36 std::cout << name <<
": merges several project files" << std::endl
39 <<
"Usage: " << name <<
" [options] input.pto input2.pto ..." << std::endl
41 <<
" Options:" << std::endl
42 <<
" -o, --output=file.pto Output Hugin PTO file." << std::endl
43 <<
" Default: <filename>_merge.pto" << std::endl
44 <<
" -h, --help Shows this help" << std::endl
122 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
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...
void mergePanorama(const Panorama &newPano)
merges the panorama with the given pano
void setSrcImage(unsigned int nr, const SrcPanoImage &img)
set input image parameters
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.
std::string GetHuginVersion()
return a string with version numbers
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.