Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions | Variables
tca_correct.cpp File Reference

program to align a set of well overlapping images (~90%) More...

#include <hugin_config.h>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vigra/error.hxx>
#include <vigra_ext/impexalpha.hxx>
#include <vigra/cornerdetection.hxx>
#include <vigra/localminmax.hxx>
#include <hugin_utils/utils.h>
#include <hugin_math/hugin_math.h>
#include "vigra/stdimage.hxx"
#include "vigra/stdimagefunctions.hxx"
#include "vigra/functorexpression.hxx"
#include "vigra/transformimage.hxx"
#include <vigra_ext/Pyramid.h>
#include <vigra_ext/Correlation.h>
#include <vigra_ext/InterestPoints.h>
#include <vigra_ext/utils.h>
#include <panodata/Panorama.h>
#include <panodata/StandardImageVariableGroups.h>
#include <panotools/PanoToolsOptimizerWrapper.h>
#include <algorithms/optimizer/PTOptimizer.h>
#include <nona/Stitcher.h>
#include <foreign/levmar/levmar.h>
#include <hugin_utils/openmp_lock.h>
#include <lensdb/LensDB.h>
#include <getopt.h>
#include <unistd.h>
#include <tiff.h>
Include dependency graph for tca_correct.cpp:

Go to the source code of this file.

Classes

struct  Parameters
 
struct  OptimData
 

Macros

#define DEFAULT_OPTIMISATION_PARAMETER   "abcvde"
 

Typedefs

typedef std::multimap< double,
vigra::Diff2D > 
MapPoints
 

Functions

void get_optvars (HuginBase::OptimizeVector &_retval)
 
static int ptProgress (int command, char *argument)
 
static int ptinfoDlg (int command, char *argument)
 
int optimize_old (HuginBase::Panorama &pano)
 
double weightHuber (double x, double sigma)
 
void optGetError (double *p, double *x, int m, int n, void *data)
 
int optVis (double *p, double *x, int m, int n, int iter, double sqerror, void *data)
 
void optimize_new (HuginBase::PanoramaData &pano)
 
static void usage (const char *name)
 
template<class ImageType >
void createCtrlPoints (HuginBase::Panorama &pano, const ImageType &img, int imgRedNr, int imgGreenNr, int imgBlueNr, double scale, int nPoints, unsigned grid)
 
int main2 (HuginBase::Panorama &pano)
 
template<class PixelType >
int processImg (const char *filename)
 
int processPTO (const char *filename)
 
void resetValues (HuginBase::Panorama &pano)
 
void print_result (HuginBase::Panorama &pano)
 
int main (int argc, char *argv[])
 

Variables

Parameters g_param
 
static hugin_omp::Lock lock
 

Detailed Description

program to align a set of well overlapping images (~90%)

Author
Pablo d'Angelo pablo.nosp@m..dan.nosp@m.gelo@.nosp@m.web..nosp@m.de
Id:
align_image_stack.cpp 2493 2007-10-24 20:26:26Z dangelo

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/.

Definition in file tca_correct.cpp.

Macro Definition Documentation

#define DEFAULT_OPTIMISATION_PARAMETER   "abcvde"

Definition at line 65 of file tca_correct.cpp.

Referenced by main().

Typedef Documentation

typedef std::multimap<double, vigra::Diff2D> MapPoints

Definition at line 440 of file tca_correct.cpp.

Function Documentation

template<class ImageType >
void createCtrlPoints ( HuginBase::Panorama pano,
const ImageType img,
int  imgRedNr,
int  imgGreenNr,
int  imgBlueNr,
double  scale,
int  nPoints,
unsigned  grid 
)
void get_optvars ( HuginBase::OptimizeVector _retval)

Definition at line 209 of file tca_correct.cpp.

References Parameters::optvars.

Referenced by main2(), optimize_new(), and optimize_old().

int main ( int  argc,
char *  argv[] 
)
int main2 ( HuginBase::Panorama pano)
void optGetError ( double *  p,
double *  x,
int  m,
int  n,
void *  data 
)
void optimize_new ( HuginBase::PanoramaData pano)
int optimize_old ( HuginBase::Panorama pano)
int optVis ( double *  p,
double *  x,
int  m,
int  n,
int  iter,
double  sqerror,
void *  data 
)

Definition at line 330 of file tca_correct.cpp.

Referenced by optimize_new().

void print_result ( HuginBase::Panorama pano)
template<class PixelType >
int processImg ( const char *  filename)
int processPTO ( const char *  filename)

Definition at line 691 of file tca_correct.cpp.

References hugin_utils::getPathPrefix(), main2(), and HuginBase::Panorama::ReadPTOFile().

Referenced by main().

static int ptinfoDlg ( int  command,
char *  argument 
)
static

Definition at line 228 of file tca_correct.cpp.

Referenced by optimize_old().

static int ptProgress ( int  command,
char *  argument 
)
static

Definition at line 224 of file tca_correct.cpp.

Referenced by optimize_old().

void resetValues ( HuginBase::Panorama pano)

Definition at line 704 of file tca_correct.cpp.

References HuginBase::Panorama::getSrcImage(), and HuginBase::Panorama::setSrcImage().

Referenced by main2().

static void usage ( const char *  name)
static

Definition at line 403 of file tca_correct.cpp.

References hugin_utils::GetHuginVersion().

double weightHuber ( double  x,
double  sigma 
)
inline

Definition at line 251 of file tca_correct.cpp.

Referenced by optGetError().

Variable Documentation

Parameters g_param

Definition at line 104 of file tca_correct.cpp.

hugin_omp::Lock lock
static

Definition at line 439 of file tca_correct.cpp.