hugin_hdrmerge.cpp File Reference

merge images More...

#include <hugin_config.h>
#include <hugin_version.h>
#include <fstream>
#include <sstream>
#include <cmath>
#include <algorithm>
#include <boost/shared_ptr.hpp>
#include <vigra/error.hxx>
#include <vigra/functorexpression.hxx>
#include <vigra_impex/codecmanager.hxx>
#include <hugin_utils/utils.h>
#include <vigra_ext/impexalpha.hxx>
#include <vigra_ext/HDRUtils.h>
#include <vigra_ext/ReduceOpenEXR.h>
#include <unistd.h>
#include "../deghosting/deghosting.h"
#include "../deghosting/khan.h"

Include dependency graph for hugin_hdrmerge.cpp:

Include dependency graph

Go to the source code of this file.

Typedefs

typedef vigra::FRGBImage ImageType
typedef boost::shared_ptr<
ImageType
ImagePtr

Functions

bool mergeWeightedAverage (vector< string > inputFiles, FRGBImage &output)
bool weightedAverageOfImageFiles (const vector< string > &inputFiles, const vector< FImagePtr > &weights, FRGBImage &output)
 compute output image when given source images
void usage (const char *name)
int main (int argc, char *argv[])

Variables

int g_verbose = 0
const uint16_t OTHER_GRAY = 1


Detailed Description

merge images

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


Typedef Documentation

typedef boost::shared_ptr<ImageType> ImagePtr
 

Definition at line 72 of file hugin_hdrmerge.cpp.

Referenced by mergeWeightedAverage().

typedef vigra::FRGBImage ImageType
 

Definition at line 69 of file hugin_hdrmerge.cpp.

Referenced by HuginLines::_getVerticalLines(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), loadImagesPyr(), PT::loadImagesPyr(), main(), main2(), mergeWeightedAverage(), HuginBase::Nona::MultiImageRemapper< ImageType, AlphaImageType >::MultiImageRemapper(), processImg(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::ReduceStitcher(), HuginBase::Nona::MultiImageRemapper< ImageType, AlphaImageType >::saveRemapped(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::SimpleStitcher(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::TiffMultiLayerRemapper(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::WeightedStitcher().


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 207 of file hugin_hdrmerge.cpp.

References cerr, cout, deghosting::Deghosting::createWeightMasks(), vigra::exportImageAlpha(), g_verbose, ImageType, mergeWeightedAverage(), reduceFilesToHDR(), vigra_ext::srcImage(), vigra_ext::srcImageRange(), usage(), and weightedAverageOfImageFiles().

bool mergeWeightedAverage vector< string inputFiles,
FRGBImage &  output
 

Definition at line 81 of file hugin_hdrmerge.cpp.

References deghosting::BImagePtr, vigra_ext::destImage(), g_verbose, ImagePtr, ImageType, vigra::importImageAlpha(), celeste::info(), and vigra_ext::ReduceToHDRFunctor< VALUETYPE >::reset().

Referenced by main().

void usage const char *  name  )  [static]
 

Definition at line 180 of file hugin_hdrmerge.cpp.

References cerr.

bool weightedAverageOfImageFiles const vector< string > &  inputFiles,
const vector< FImagePtr > &  weights,
FRGBImage &  output
 

compute output image when given source images

Definition at line 141 of file hugin_hdrmerge.cpp.

References cout, vigra_ext::destImage(), g_verbose, vigra::importImageAlpha(), vigra_ext::srcImage(), and vigra_ext::srcImageRange().

Referenced by main().


Variable Documentation

int g_verbose = 0 [static]
 

Definition at line 75 of file hugin_hdrmerge.cpp.

const uint16_t OTHER_GRAY = 1
 

Definition at line 77 of file hugin_hdrmerge.cpp.


Generated on Fri Sep 19 01:25:42 2014 for Hugintrunk by  doxygen 1.3.9.1