Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | Related Pages

im::PixelSum< T > Struct Template Reference

A struct for computing the sum of pixels in an image. More...

#include <im.hh>

List of all members.

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.

sum
 The sum of the pixels.

int count
 The number of pixels summed.


Detailed Description

template<typename T>
struct im::PixelSum< T >

A struct for computing the sum of pixels in an image.


The documentation for this struct was generated from the following file:
Generated on Sat Feb 26 22:54:39 2005 for GoCam by doxygen 1.3.4