|
Hugin trunk 0.1
|
merge images More...
#include <hugin_config.h>#include <fstream>#include <sstream>#include <cmath>#include <algorithm>#include <memory>#include <vigra/error.hxx>#include <vigra/functorexpression.hxx>#include <vigra/transformimage.hxx>#include <hugin_utils/utils.h>#include <vigra_ext/impexalpha.hxx>#include <vigra_ext/HDRUtils.h>#include <vigra_ext/ReduceOpenEXR.h>#include <getopt.h>#include "../deghosting/deghosting.h"#include "../deghosting/khan.h"
Go to the source code of this file.
Typedefs | |
| typedef vigra::FRGBImage | ImageType |
| typedef std::shared_ptr< ImageType > | ImagePtr |
Functions | |
| bool | mergeWeightedAverage (std::vector< std::string > inputFiles, vigra::FRGBImage &output, vigra::BImage &alpha, vigra::Rect2D &outputROI) |
| bool | weightedAverageOfImageFiles (const std::vector< std::string > &inputFiles, const std::vector< deghosting::FImagePtr > &weights, vigra::FRGBImage &output, vigra::BImage &alpha, const vigra::Rect2D outputROI) |
| compute output image when given source images | |
| static void | usage (const char *name) |
| int | main (int argc, char *argv[]) |
Variables | |
| static int | g_verbose = 0 |
| const uint16_t | OTHER_GRAY = 1 |
merge images
$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 hugin_hdrmerge.cpp.
Definition at line 56 of file hugin_hdrmerge.cpp.
Definition at line 53 of file hugin_hdrmerge.cpp.
Definition at line 225 of file hugin_hdrmerge.cpp.
References deghosting::ADV_GAMMA, deghosting::ADV_MULTIRES, vigra::exportImageAlpha(), flags, g_verbose, iterations, mergeWeightedAverage(), OTHER_GRAY, otherFlags, reduceFilesToHDR(), sigma, hugin_utils::stripPath(), threshold(), usage(), and weightedAverageOfImageFiles().
| bool mergeWeightedAverage | ( | std::vector< std::string > | inputFiles, |
| vigra::FRGBImage & | output, | ||
| vigra::BImage & | alpha, | ||
| vigra::Rect2D & | outputROI | ||
| ) |
Definition at line 64 of file hugin_hdrmerge.cpp.
References g_verbose, vigra_ext::ReduceToHDRFunctor< VALUETYPE >::reset(), and threshold().
Referenced by main().
Definition at line 198 of file hugin_hdrmerge.cpp.
References hugin_utils::GetHuginVersion().
| bool weightedAverageOfImageFiles | ( | const std::vector< std::string > & | inputFiles, |
| const std::vector< deghosting::FImagePtr > & | weights, | ||
| vigra::FRGBImage & | output, | ||
| vigra::BImage & | alpha, | ||
| const vigra::Rect2D | outputROI | ||
| ) |
compute output image when given source images
Definition at line 151 of file hugin_hdrmerge.cpp.
References g_verbose, vigra::importImageAlpha(), and threshold().
Referenced by main().
|
static |
Definition at line 58 of file hugin_hdrmerge.cpp.
Referenced by main(), mergeWeightedAverage(), and weightedAverageOfImageFiles().
Definition at line 60 of file hugin_hdrmerge.cpp.
Referenced by main().