align_image_stack.cpp File Reference

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

#include <hugin_config.h>
#include <hugin_version.h>
#include <fstream>
#include <sstream>
#include <vigra/error.hxx>
#include <vigra/impex.hxx>
#include <vigra/cornerdetection.hxx>
#include <vigra/localminmax.hxx>
#include <hugin_utils/utils.h>
#include <vigra_ext/Pyramid.h>
#include <vigra_ext/Correlation.h>
#include <vigra_ext/InterestPoints.h>
#include <panodata/Panorama.h>
#include <panotools/PanoToolsOptimizerWrapper.h>
#include <panodata/StandardImageVariableGroups.h>
#include <algorithms/optimizer/PTOptimizer.h>
#include <nona/Stitcher.h>
#include <algorithms/basic/CalculateOptimalROI.h>
#include <unistd.h>
#include <tiff.h>

Include dependency graph for align_image_stack.cpp:

Go to the source code of this file.

Classes

struct  Parameters

Functions

static void usage (const char *name)
template<class ImageType>
void createCtrlPoints (Panorama &pano, int img1, const ImageType &leftImg, const ImageType &leftImgOrig, int img2, const ImageType &rightImg, const ImageType &rightImgOrig, int pyrLevel, double scale, unsigned nPoints, unsigned grid, bool stereo=false)
void alignStereoWindow (Panorama &pano, bool pop_out)
void autoCrop (Panorama &pano)
template<class PixelType>
int main2 (std::vector< std::string > files, Parameters param)
int main (int argc, char *argv[])

Variables

int g_verbose = 0


Detailed Description

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

Author:
Pablo d'Angelo <pablo.dangelo@web.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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file align_image_stack.cpp.


Function Documentation

void alignStereoWindow ( Panorama pano,
bool  pop_out 
)

Definition at line 288 of file align_image_stack.cpp.

References HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::setCtrlPoints(), and X.

Referenced by main2().

void autoCrop ( Panorama pano  ) 

Definition at line 369 of file align_image_stack.cpp.

References cout, HuginBase::Panorama::getOptions(), HuginBase::CalculateOptimalROI::getResultOptimalROI(), HuginBase::PanoramaAlgorithm::run(), HuginBase::Panorama::setOptions(), and HuginBase::PanoramaOptions::setROI().

Referenced by main2().

template<class ImageType>
void createCtrlPoints ( Panorama pano,
int  img1,
const ImageType leftImg,
const ImageType leftImgOrig,
int  img2,
const ImageType rightImg,
const ImageType rightImgOrig,
int  pyrLevel,
double  scale,
unsigned  nPoints,
unsigned  grid,
bool  stereo = false 
)

Definition at line 160 of file align_image_stack.cpp.

References HuginBase::Panorama::addCtrlPoint(), cout, vigra_ext::CorrelationResult::curv, DEBUG_DEBUG, vigra_ext::findInterestPointsOnGrid(), g_verbose, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, vigra_ext::PointFineTune(), vigra_ext::srcImageRange(), hugin_utils::TDiff2D< T >::x, X, Y, and hugin_utils::TDiff2D< T >::y.

Referenced by main2(), and processImg().

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

Definition at line 724 of file align_image_stack.cpp.

References Parameters::alignedPrefix, cerr, Parameters::cpErrorThreshold, Parameters::crop, Parameters::fisheye, g_verbose, Parameters::grid, Parameters::hdrFile, Parameters::hfov, Parameters::linear, Parameters::nPoints, Parameters::optCenter, Parameters::optDistortion, Parameters::optHFOV, Parameters::optX, Parameters::optY, Parameters::optZ, Parameters::pop_out, Parameters::ptoFile, Parameters::pyrLevel, Parameters::stereo, Parameters::stereo_window, and usage().

template<class PixelType>
int main2 ( std::vector< std::string files,
Parameters  param 
)

Definition at line 435 of file align_image_stack.cpp.

References HuginBase::Panorama::addImage(), Parameters::alignedPrefix, alignStereoWindow(), autoCrop(), cerr, cout, Parameters::cpErrorThreshold, createCtrlPoints(), Parameters::crop, vigra_ext::destImage(), Parameters::fisheye, g_verbose, HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getSrcImage(), Parameters::grid, Parameters::hdrFile, Parameters::hfov, HuginBase::PanoramaOptions::huberSigma, vigra::importImageAlpha(), Parameters::linear, HuginBase::Panorama::linkImageVariableStack(), Parameters::nPoints, Parameters::optCenter, Parameters::optDistortion, Parameters::optHFOV, HuginBase::PTools::optimize(), Parameters::optX, Parameters::optY, Parameters::optZ, HuginBase::PanoramaOptions::outfile, HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputMode, HuginBase::PanoramaOptions::outputPixelType, Parameters::pop_out, HuginBase::Panorama::printPanoramaScript(), Parameters::ptoFile, Parameters::pyrLevel, HuginBase::SrcPanoImage::readEXIF(), vigra_ext::reduceNTimes(), HuginBase::Panorama::setCtrlPoints(), HuginBase::BaseSrcPanoImage::setExposureValue(), HuginBase::BaseSrcPanoImage::setFilename(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::Panorama::setOptimizeVector(), HuginBase::Panorama::setOptions(), HuginBase::PanoramaOptions::setProjection(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::BaseSrcPanoImage::setResponseType(), HuginBase::BaseSrcPanoImage::setRoll(), HuginBase::Panorama::setSrcImage(), HuginBase::PanoramaOptions::setWidth(), Parameters::stereo, Parameters::stereo_window, HuginBase::Nona::stitchPanorama(), HuginBase::PanoramaOptions::tiff_saveROI, HuginBase::Panorama::unlinkImageVariableHFOV(), HuginBase::Panorama::unlinkImageVariableRadialDistortion(), HuginBase::Panorama::unlinkImageVariableRadialDistortionCenterShift(), and X.

Referenced by processImg(), and processPTO().

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

Definition at line 68 of file align_image_stack.cpp.

References cerr.


Variable Documentation

int g_verbose = 0

Definition at line 66 of file align_image_stack.cpp.

Referenced by createCtrlPoints(), createCtrlPointsOld(), main(), main2(), mergeWeightedAverage(), optimize_new(), and weightedAverageOfImageFiles().


Generated on 31 Oct 2014 for Hugintrunk by  doxygen 1.4.7