|
Hugintrunk
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 |
Functions | |
| template<class SrcImgType , class AlphaImgType , class FlatImgType , class DestImgType > | |
| 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) |
| template<class PIXELTYPE > | |
| void | correctRGB (HuginBase::SrcPanoImage &src, vigra::ImageImportInfo &info, const char *outfile, bool crop, const std::string &compression, AppBase::ProgressDisplay *progress) |
| static void | usage (const char *name) |
| int | main (int argc, char *argv[]) |
| template<class SrcImgType , class AlphaImgType , class FlatImgType , class DestImgType > | |
| 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 More... | |
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::omp::combineThreeImages(), vigra::omp::copyImage(), vigra_ext::EMoR::createEMoRLUT(), DEBUG_DEBUG, vigra_ext::destImage(), vigra_ext::destImageRange(), vigra_ext::enforceMonotonicity(), 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(), vigra_ext::pow(), HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, hugin_utils::roundi(), HuginBase::Photometric::ResponseTransform< VTIn >::setFlatfield(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::setHDROutput(), AppBase::ProgressDisplay::setMessage(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::setOutput(), vigra_ext::srcImage(), vigra_ext::srcImageRange(), 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_ext::destImage(), vigra::exportImageAlpha(), vigra_ext::getMaxValForPixelType(), vigra::detail::importImageAlpha(), vigra_ext::INTERP_SPLINE_16, vigra_ext::srcImage(), vigra_ext::srcImageRange(), and HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 114 of file fulla.cpp.
References HuginBase::LensDB::LensDB::Clean(), DEBUG_ERROR, HuginBase::SrcPanoImage::getDBLensName(), hugin_utils::getExtension(), HuginBase::LensDB::LensDB::GetSingleton(), HuginBase::LensDB::LensDB::GetTCA(), celeste::info(), HuginBase::SrcPanoImage::readDistortionFromDB(), HuginBase::SrcPanoImage::readEXIF(), HuginBase::SrcPanoImage::readVignettingFromDB(), HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, HuginBase::SrcPanoImage::setSize(), hugin_utils::stripExtension(), hugin_utils::stripPath(), hugin_utils::tolower(), usage(), HuginBase::BaseSrcPanoImage::VIGCORR_DIV, HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD, HuginBase::BaseSrcPanoImage::VIGCORR_NONE, and HuginBase::BaseSrcPanoImage::VIGCORR_RADIAL.
|
static |
Definition at line 63 of file fulla.cpp.
References hugin_utils::GetHuginVersion().
1.8.5