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.


namespace  vigra_ext


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


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

Pablo d'Angelo <>

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

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 Tue Sep 23 01:25:46 2014 for Hugintrunk by  doxygen