FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
BWconversion.hpp
1 /*
2  * Copyright 2011, 2012 Lukas Jirkovsky
3  *
4  * This file is part of FotoSHOCK.
5  *
6  * FotoSHOCK is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * FotoSHOCK is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with FotoSHOCK. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
25 #ifndef BWCONVERSION_H
26 #define BWCONVERSION_H
27 
28 #include <ImageOperation.hpp>
29 
30 using namespace FotoSHOCKcore;
31 
32 class BWconversion : public ImageOperation {
33  public:
34  virtual void runOperation (const Inputs& sources, const Outputs& dest, vector<UpdateInfo>& ROI, const long stamp);
35 };
36 
38  public:
39  virtual const char* name() {return "B/W Conversion.";}
40  virtual const char* description() {return "Converts an image to grayscale.";}
41  virtual ImageOperation* operation() {return new BWconversion;}
42 };
43 
44 #endif