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:

Go to the source code of this file.


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)
static void usage (const char *name)
int main (int argc, char *argv[])

Detailed Description

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

Pablo d'Angelo <pablo.dangelo@web.de>

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(), vigra_ext::INTERP_SPLINE_16, HuginBase::Nona::SpaceTransform::isIdentity(), AppBase::MultiProgressDisplay::pushTask(), HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, 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(), vigra_ext::INTERP_SPLINE_16, 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, cout, and celeste::info().

Referenced by main().

int main ( int  argc,
char *  argv[] 

Definition at line 122 of file fulla.cpp.

References cerr, cout, DEBUG_ERROR, 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(), hugin_utils::stripExtension(), and usage().

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

Definition at line 81 of file fulla.cpp.

References cerr.

Generated on 30 Jun 2015 for Hugintrunk by  doxygen 1.4.7