#include <im.hh>
Public Member Functions | |
PixelSum (const CImg< T > &img) | |
Initialize the summer with a reference to an image. | |
void | operator() (int x, int y) |
Process a pixel by summing. | |
Public Attributes | |
const CImg< T > & | img |
The image from which the pixel values are fetched. | |
T | sum |
The sum of the pixels. | |
int | count |
The number of pixels summed. |