|
Hugin trunk 0.1
|
a tool to perform distortion, vignetting and chromatic abberation correction. More...
#include <hugin_config.h>#include <fstream>#include <sstream>#include <vigra/error.hxx>#include <vigra/impex.hxx>#include <vigra/codec.hxx>#include <vigra_ext/impexalpha.hxx>#include <getopt.h>#include <appbase/ProgressDisplay.h>#include <nona/SpaceTransform.h>#include <photometric/ResponseTransform.h>#include <hugin_basic.h>#include <lensdb/LensDB.h>#include <tiffio.h>#include <vigra_ext/ImageTransforms.h>
Go to the source code of this file.
Classes | |
| class | NullTransform |
a tool to perform distortion, vignetting and chromatic abberation correction.
$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, see http://www.gnu.org/licenses/.
Definition in file fulla.cpp.
| void correctImage | ( | SrcImgType & | srcImg, |
| const AlphaImgType & | srcAlpha, | ||
| const FlatImgType & | srcFlat, | ||
| HuginBase::SrcPanoImage | src, | ||
| vigra_ext::Interpolator | interpolator, | ||
| double | maxValue, | ||
| DestImgType & | destImg, | ||
| AlphaImgType & | destAlpha, | ||
| bool | doCrop, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
Referenced by correctRGB().
| void correctImage | ( | SrcImgType & | srcImg, |
| const AlphaImgType & | srcAlpha, | ||
| FlatImgType & | srcFlat, | ||
| HuginBase::SrcPanoImage | src, | ||
| vigra_ext::Interpolator | interpolator, | ||
| double | maxValue, | ||
| DestImgType & | destImg, | ||
| AlphaImgType & | destAlpha, | ||
| bool | doCrop, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
remap a single image
Be careful, might modify srcImg (vignetting and brightness correction)
Definition at line 586 of file fulla.cpp.
References vigra_ext::EMoR::createEMoRLUT(), DEBUG_DEBUG, vigra_ext::enforceMonotonicity(), HuginBase::Nona::estScaleFactorForFullFrame(), HuginBase::Nona::SpaceTransform::InitRadialCorrect(), vigra_ext::INTERP_SPLINE_16, HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, hugin_utils::roundi(), threshold(), vigra_ext::transformImage(), vigra_ext::transformImageAlpha(), HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD, HuginBase::BaseSrcPanoImage::VIGCORR_NONE, and HuginBase::BaseSrcPanoImage::VIGCORR_RADIAL.
| void correctRGB | ( | HuginBase::SrcPanoImage & | src, |
| vigra::ImageImportInfo & | info, | ||
| const char * | outfile, | ||
| bool | crop, | ||
| const std::string & | compression, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
Definition at line 786 of file fulla.cpp.
References correctImage(), vigra::exportImageAlpha(), vigra_ext::getMaxValForPixelType(), vigra_ext::INTERP_SPLINE_16, threshold(), and HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD.
Definition at line 114 of file fulla.cpp.
References HuginBase::LensDB::LensDB::Clean(), DEBUG_ERROR, hugin_utils::getExtension(), HuginBase::LensDB::LensDB::GetSingleton(), HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, hugin_utils::stripExtension(), hugin_utils::stripPath(), threshold(), hugin_utils::tolower(), usage(), HuginBase::BaseSrcPanoImage::VIGCORR_DIV, HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD, HuginBase::BaseSrcPanoImage::VIGCORR_NONE, and HuginBase::BaseSrcPanoImage::VIGCORR_RADIAL.