This is an example of how to declare an ImageOperation that converts image to grayscale using the transformImage() function.
#ifndef BWCONVERSION_H
#define BWCONVERSION_H
#include <ImageOperation.hpp>
using namespace FotoSHOCKcore;
public:
virtual void runOperation (
const Inputs& sources,
const Outputs& dest, vector<UpdateInfo>& ROI,
const long stamp);
};
public:
virtual const char* name() {return "B/W Conversion.";}
virtual const char* description() {return "Converts an image to grayscale.";}
};
#endif