pto_lensstack.cpp File Reference

program to manipulate lens and stack assignment in pto files More...

#include <fstream>
#include <sstream>
#include <getopt.h>
#include <unistd.h>
#include <panodata/Panorama.h>
#include <panodata/StandardImageVariableGroups.h>
#include "hugin_utils/utils.h"
#include <panodata/image_variables.h>

Include dependency graph for pto_lensstack.cpp:

Go to the source code of this file.

Classes

struct  ParsedImg

Defines

#define image_variable(name, type, default_value)

Typedefs

typedef std::vector< ParsedImgParseImgVec

Functions

void ParseSingleImage (ParseImgVec &varVec, const std::string &s)
void ParseImageLensStackString (ParseImgVec &parseVec, std::string input)
static void usage (const char *name)
int main (int argc, char *argv[])


Detailed Description

program to manipulate lens and stack assignment in pto files

Author:
T. Modes

Definition in file pto_lensstack.cpp.


Define Documentation

#define image_variable ( name,
type,
default_value   ) 

Value:

case HuginBase::ImageVariableGroup::IVE_##name:\
    pano.unlinkImageVariable##name(imgNr);\
    break;


Typedef Documentation

typedef std::vector<ParsedImg> ParseImgVec

Definition at line 48 of file pto_lensstack.cpp.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 145 of file pto_lensstack.cpp.

References HuginBase::append(), cerr, cout, fill_set(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), HuginBase::ConstStandardImageVariableGroups::getStackVariables(), ParseImageLensStackString(), HuginBase::Panorama::printPanoramaScript(), HuginBase::Panorama::readData(), HuginBase::Panorama::setFilePrefix(), hugin_utils::stripPath(), HuginBase::ImageVariableGroup::switchParts(), and usage().

void ParseImageLensStackString ( ParseImgVec parseVec,
std::string  input 
)

Definition at line 94 of file pto_lensstack.cpp.

References ParseSingleImage(), and hugin_utils::SplitString().

Referenced by main().

void ParseSingleImage ( ParseImgVec varVec,
const std::string s 
)

Definition at line 51 of file pto_lensstack.cpp.

References ParsedImg::imgNr, ParsedImg::lensStackNr, and hugin_utils::stringToInt().

Referenced by ParseImageLensStackString().

static void usage ( const char *  name  )  [static]

Definition at line 120 of file pto_lensstack.cpp.

References cout, and hugin_utils::GetHuginVersion().


Generated on 30 Jul 2015 for Hugintrunk by  doxygen 1.4.7