Public Member Functions | |
virtual void | runOperation (const Inputs &sources, const Outputs &dest, vector< UpdateInfo > &, const long) |
Apply the operation. More... | |
virtual const unsigned int | getNumInputs () const |
Public Member Functions inherited from FotoSHOCKcore::ImageOperation | |
ImageOperation () | |
A constructor. More... | |
virtual | ~ImageOperation () |
A destructor. | |
GraphNode * | getOwnerNode () const |
Get the node containing the operation. More... | |
virtual void | initialize () |
Set up the internal data which depends on the information from the GraphNode class. More... | |
virtual bool | isPrepared () |
Tell whether the operations is prepared to process image data. More... | |
virtual bool | updateROI (UpdateInfo ¤tROI, UpdateInfo &parentROI) |
Update ROI in parent to fit the needs of a new ROI. More... | |
boost::shared_ptr< UpdateInfo > | requestROI (boost::shared_ptr< UpdateInfo > currentROI) |
Get the required ROI of an input. More... | |
virtual void | serialize (XmlSerializer &serializer) |
Serialize the operation using the specified serializer. More... | |
virtual void | deserialize (XmlSerializer &serializer) |
Deserialize the operation using the specified serializer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from FotoSHOCKcore::ImageOperation | |
void | setOwnerNode (GraphNode *node) |
Sets the node, that contains the operation. More... | |
|
inlinevirtual |
Apply the operation.
Apply the operation on the given input ImageBuffers and output it in a destination buffer.
The source buffers and destination buffer can be considered as having the same PixelFormat except for some internal GraphManager operations.
sources | source buffers |
dest | destination buffers |
ROI | list of regions where the operation should be recalculated. The specified ROI is not a hard limit, the region recalculated can be bigger than ROI. |
stamp | identifier which the operation should use to identify itself. That means you should set the tile stamp to this value in the implementation. The stamp can used to check whether the requested region of a buffer has been already processed by the operation to reduce the amount of processed data |
Implements FotoSHOCKcore::ImageOperation.