1
/* **************************************************************************
2
qgslinearminmaxenhancementwithclip.h - description
4
begin : Fri Nov 16 2007
5
copyright : (C) 2007 by Peter J. Ersts
8
****************************************************************************/
10
/* **************************************************************************
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
17
***************************************************************************/
19
#ifndef QGSLINEARMINMAXENHANCEMENTWITHCLIP_H
20
#define QGSLINEARMINMAXENHANCEMENTWITHCLIP_H
22
#include "qgscontrastenhancementfunction.h"
25
* A linear enhanceContrast enhancement that first clips to min max and then enhanceContrastes
26
* linearly between min and max.
28
class CORE_EXPORT QgsLinearMinMaxEnhancementWithClip : public QgsContrastEnhancementFunction
32
QgsLinearMinMaxEnhancementWithClip( QgsContrastEnhancement::QgsRasterDataType, double, double );
34
int enhance( double );
36
bool isValueInDisplayableRange( double );