lut.h File Reference

#include <vector>
#include <functional>
#include <hugin_math/hugin_math.h>
#include <vigra/stdimage.hxx>
#include <vigra/numerictraits.hxx>
#include <vigra/array_vector.hxx>
#include <vigra_ext/utils.h>
#include <vigra_ext/HDRUtils.h>
#include <vigra_ext/emor.h>

Include dependency graph for lut.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  vigra_ext

Classes

struct  vigra_ext::LUTFunctor< VTIn, LUT >
 functor to apply a LUT to gray and color images. More...
struct  vigra_ext::InvLUTFunctor< VT1, LUT >
 functor to apply a LUT to gray and color images. More...
struct  vigra_ext::ExposureResponseFunctor< OP >
 just apply exposure and response to linear data More...

Functions

template<class VECTOR>
void createGammaLUT (double gamma, VECTOR &lut)
template<class VEC, class VEC2>
void resizeLUT (const VEC &iLUT, VEC2 &oLUT)
template<class LUT>
void enforceMonotonicity (LUT &lut)
 enforce monotonicity of an array (mostly used for lookup tables)


Detailed Description

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This 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 Lesser 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 lut.h.


Function Documentation

template<class VECTOR>
void createGammaLUT double  gamma,
VECTOR &  lut
[inline]
 

Definition at line 50 of file lut.h.

References celeste::max(), and vigra_ext::pow().

Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::initWithSrcImg(), and PreviewPanel::updatePreview().

template<class LUT>
void enforceMonotonicity LUT &  lut  ) 
 

enforce monotonicity of an array (mostly used for lookup tables)

Definition at line 87 of file lut.h.

Referenced by PreviewColorPickerTool::CalcCorrectionForImage(), TextureManager::TextureInfo::DefineLevels(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::enforceMonotonicity(), HuginBase::Photometric::ResponseTransform< VTIn >::enforceMonotonicity(), ImageVariableDialog::OnShowResponseGraph(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().

template<class VEC, class VEC2>
void resizeLUT const VEC &  iLUT,
VEC2 &  oLUT
 

Definition at line 64 of file lut.h.

Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::initWithSrcImg().


Generated on Fri Aug 29 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1