Engauge Digitizer 2
Loading...
Searching...
No Matches
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
13class ColorFilter;
14class QColor;
15class QTextStream;
16
20{
21 public:
24
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
virtual double pixelToZeroToOne(const QColor &pixel, QRgb rgbBackground) const =0
Return a normalized value of 0 to 1 given input pixel.
virtual int zeroToOneToValue(double s) const =0
Return the low value normalized to 0 to 1.
Class for filtering image to remove unimportant information.
Definition ColorFilter.h:21