1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : Local Contrast settings container
8
* LDR ToneMapper <http://zynaddsubfx.sourceforge.net/other/tonemapping>
10
* Copyright (C) 2009 by Nasca Octavian Paul <zynaddsubfx at yahoo dot com>
11
* Copyright (C) 2009-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
13
* This program is free software; you can redistribute it
14
* and/or modify it under the terms of the GNU General
15
* Public License as published by the Free Software Foundation;
16
* either version 2, or (at your option)
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
24
* ============================================================ */
26
#ifndef LOCALCONTRASTCONTAINER_H
27
#define LOCALCONTRASTCONTAINER_H
29
#define TONEMAPPING_MAX_STAGES 4
33
#include "digikam_export.h"
38
class ToneMappingParametersPriv;
40
class DIGIKAM_EXPORT LocalContrastContainer
45
LocalContrastContainer();
46
~LocalContrastContainer();
48
float get_power(int nstage);
49
float get_blur(int nstage);
51
float get_unsharp_mask_power();
52
float get_unsharp_mask_blur();
56
bool stretch_contrast;
68
stage[TONEMAPPING_MAX_STAGES];
72
bool enabled; // digiKam Unsharp Mask settings:
73
float blur; // Radius : 0.00 - 120.00
74
float power; // Amount : 0.0 - 5.0
75
int threshold; // threshold : 0.00 - 1.00
80
} // namespace Digikam
82
#endif // LOCALCONTRASTCONTAINER_H