Engauge Digitizer
2
Color
ColorFilterStrategyAbstractBase.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef COLOR_FILTER_STRATEGY_ABSTRACT_BASE_H
8
#define COLOR_FILTER_STRATEGY_ABSTRACT_BASE_H
9
10
#include <QRgb>
11
#include <QString>
12
13
class
ColorFilter
;
14
class
QColor;
15
class
QTextStream;
16
19
class
ColorFilterStrategyAbstractBase
20
{
21
public
:
23
ColorFilterStrategyAbstractBase
();
24
25
virtual
~ColorFilterStrategyAbstractBase
();
26
28
virtual
double
pixelToZeroToOne
(
const
QColor &pixel,
29
QRgb rgbBackground)
const
= 0;
30
32
virtual
int
zeroToOneToValue
(
double
s)
const
= 0;
33
34
};
35
36
#endif // COLOR_FILTER_STRATEGY_ABSTRACT_BASE_H
ColorFilter
Class for filtering image to remove unimportant information.
Definition:
ColorFilter.h:19
ColorFilterStrategyAbstractBase::zeroToOneToValue
virtual int zeroToOneToValue(double s) const =0
Return the low value normalized to 0 to 1.
ColorFilterStrategyAbstractBase::pixelToZeroToOne
virtual double pixelToZeroToOne(const QColor &pixel, QRgb rgbBackground) const =0
Return a normalized value of 0 to 1 given input pixel.
ColorFilterStrategyAbstractBase::~ColorFilterStrategyAbstractBase
virtual ~ColorFilterStrategyAbstractBase()
Definition:
ColorFilterStrategyAbstractBase.cpp:12
ColorFilterStrategyAbstractBase
Base class for strategy pattern whose subclasses process the different color filter settings modes (o...
Definition:
ColorFilterStrategyAbstractBase.h:18
ColorFilterStrategyAbstractBase::ColorFilterStrategyAbstractBase
ColorFilterStrategyAbstractBase()
Single constructor.
Definition:
ColorFilterStrategyAbstractBase.cpp:8
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16