fulla.cpp File Reference

a tool to perform distortion, vignetting and chromatic abberation correction. More...

#include <hugin_config.h>
#include <hugin_version.h>
#include <fstream>
#include <sstream>
#include <vigra/error.hxx>
#include <vigra/impex.hxx>
#include <exiv2/image.hpp>
#include <exiv2/exif.hpp>
#include <unistd.h>
#include <appbase/ProgressDisplayOld.h>
#include <nona/SpaceTransform.h>
#include <photometric/ResponseTransform.h>
#include <hugin_basic.h>
#include <foreign/lensdb/PTLensDB.h>
#include <tiffio.h>
#include <vigra_ext/MultiThreadOperations.h>
#include <vigra_ext/ImageTransforms.h>

Include dependency graph for fulla.cpp:

Include dependency graph

Go to the source code of this file.

Functions

template<class SrcImgType, class FlatImgType, class DestImgType>
void correctImage (SrcImgType &srcImg, const FlatImgType &srcFlat, SrcPanoImage src, vigra_ext::Interpolator interpolator, DestImgType &destImg, bool doCrop, AppBase::MultiProgressDisplay &progress)
 remap a single image
template<class PIXELTYPE>
void correctRGB (SrcPanoImage &src, ImageImportInfo &info, const char *outfile, bool crop, const std::string &compression, AppBase::MultiProgressDisplay &progress)
bool getPTLensCoef (const char *fn, string cameraMaker, string cameraName, string lensName, float focalLength, vector< double > &coeff)
void usage (const char *name)
int main (int argc, char *argv[])


Detailed Description

a tool to perform distortion, vignetting and chromatic abberation correction.

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

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 fulla.cpp.


Function Documentation

template<class SrcImgType, class FlatImgType, class DestImgType>
void correctImage SrcImgType &  srcImg,
const FlatImgType &  srcFlat,
SrcPanoImage  src,
vigra_ext::Interpolator  interpolator,
DestImgType &  destImg,
bool  doCrop,
AppBase::MultiProgressDisplay progress
 

remap a single image

Be careful, might modify srcImg (vignetting and brightness correction)

Definition at line 375 of file fulla.cpp.

References DEBUG_DEBUG, vigra_ext::destImage(), vigra_ext::destImageRange(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::enforceMonotonicity(), HuginBase::Nona::estScaleFactorForFullFrame(), HuginBase::SrcPanoImage::getCorrectTCA(), HuginBase::Nona::SpaceTransform::InitRadialCorrect(), HuginBase::Nona::SpaceTransform::isIdentity(), AppBase::MultiProgressDisplay::pushTask(), hugin_utils::roundi(), HuginBase::Photometric::ResponseTransform< VTIn >::setFlatfield(), HuginBase::BaseSrcPanoImage::setRadialDistortion(), HuginBase::BaseSrcPanoImage::setResponseType(), vigra_ext::srcImageRange(), vigra_ext::transformImage(), and vigra_ext::transformImageSpatial().

Referenced by correctRGB().

template<class PIXELTYPE>
void correctRGB SrcPanoImage src,
ImageImportInfo &  info,
const char *  outfile,
bool  crop,
const std::string compression,
AppBase::MultiProgressDisplay progress
 

Definition at line 512 of file fulla.cpp.

References correctImage(), vigra_ext::destImage(), HuginBase::SrcPanoImage::resize(), and vigra_ext::srcImageRange().

bool getPTLensCoef const char *  fn,
string  cameraMaker,
string  cameraName,
string  lensName,
float  focalLength,
vector< double > &  coeff
 

Definition at line 535 of file fulla.cpp.

References cerr, celeste::info(), and HuginBase::SrcPanoImage::resize().

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 122 of file fulla.cpp.

References cerr, cout, DEBUG_ERROR, hugin_utils::FDiff2D, vigra_ext::ThreadManager::get(), hugin_utils::getExtension(), getPTLensCoef(), celeste::info(), HuginBase::BaseSrcPanoImage::setFilename(), HuginBase::BaseSrcPanoImage::setFlatfieldFilename(), HuginBase::BaseSrcPanoImage::setGamma(), vigra_ext::ThreadManager::setNThreads(), HuginBase::BaseSrcPanoImage::setRadialDistortion(), HuginBase::BaseSrcPanoImage::setRadialDistortionBlue(), HuginBase::BaseSrcPanoImage::setRadialDistortionCenterShift(), HuginBase::BaseSrcPanoImage::setRadialDistortionRed(), HuginBase::BaseSrcPanoImage::setRadialVigCorrCoeff(), HuginBase::SrcPanoImage::setSize(), HuginBase::BaseSrcPanoImage::setVigCorrMode(), makefile::string, hugin_utils::stripExtension(), and usage().

void usage const char *  name  )  [static]
 

Definition at line 81 of file fulla.cpp.

References cerr.


Generated on Fri Aug 1 01:25:46 2014 for Hugintrunk by  doxygen 1.3.9.1