OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
normalizer_factory.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2011 by the OpenStructure authors
5 // Copyright (C) 2003-2010 by the IPLT authors
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the Free
9 // Software Foundation; either version 3.0 of the License, or (at your option)
10 // any later version.
11 // This library is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 // details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with this library; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //------------------------------------------------------------------------------
20 
21 /*
22  Normalizer factory methods
23 
24  Author: Andreas Schenk
25 */
26 
27 #include <ost/img/image.hh>
28 #include "norm_linear.hh"
29 #include "norm_log.hh"
30 #include "norm_od.hh"
31 #include "normalizer.hh"
32 
33 #ifndef NORMALIZER_FACTORY_HH_
34 #define NORMALIZER_FACTORY_HH_
35 
36 namespace ost { namespace img { namespace alg {
37 
39 DLLEXPORT_IMG_ALG Normalizer CreateLinearNormalizer(Real scale, Real offset);
40 DLLEXPORT_IMG_ALG Normalizer CreateLinearRangeNormalizer(const ConstImageHandle& ih, Real minoutput, Real maxoutput);
41 DLLEXPORT_IMG_ALG Normalizer CreateLinearRangeNormalizer(Real mininput,Real maxinput, Real minoutput, Real maxoutput);
42 DLLEXPORT_IMG_ALG Normalizer CreateLogNormalizer(Real scale, Real min, Real offset);
43 DLLEXPORT_IMG_ALG Normalizer CreateLogRangeNormalizer(const ConstImageHandle& ih, Real minoutput, Real maxoutput);
44 DLLEXPORT_IMG_ALG Normalizer CreateLogRangeNormalizer(Real mininput,Real maxinput, Real minoutput, Real maxoutput);
45 DLLEXPORT_IMG_ALG Normalizer CreateTransmissionToODNormalizer(Real mininput,Real maxinput, Real maxOD=10.0);
46 
47 }}}//ns
48 
49 #endif /*NORMALIZER_FACTORY_HH_*/
float Real
Definition: base.hh:44
DLLEXPORT_IMG_ALG Normalizer CreateNoOpNormalizer()
DLLEXPORT_IMG_ALG Normalizer CreateLinearRangeNormalizer(const ConstImageHandle &ih, Real minoutput, Real maxoutput)
#define DLLEXPORT_IMG_ALG
DLLEXPORT_IMG_ALG Normalizer CreateTransmissionToODNormalizer(Real mininput, Real maxinput, Real maxOD=10.0)
DLLEXPORT_IMG_ALG Normalizer CreateLinearNormalizer(Real scale, Real offset)
DLLEXPORT_IMG_ALG Normalizer CreateLogNormalizer(Real scale, Real min, Real offset)
DLLEXPORT_IMG_ALG Normalizer CreateLogRangeNormalizer(const ConstImageHandle &ih, Real minoutput, Real maxoutput)