The C++ Template Image Processing Library.
Initially developped in the Odyssée Lab, at the INRIA-Sophia Antipolis.

[Introduction]- [Latest News]- [Download]- [Screenshots]- [Tutorial]- [Forums]- [Library Reference]- [SourceForge Repository ]

Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

CImgStats Struct Reference

This structure represents statistics of an image. Use it to compute basic statistics on pixel values, such as the minimum, maximum, average values and the variance of a CImg<T> images. More...

List of all members.

Public Member Functions

 CImgStats ()
 Empty constructor.
 CImgStats (const CImgStats &stats)
 Copy constructor.
CImgStatsoperator= (const CImgStats stats)
 Assignement operator.
template<typename T>  CImgStats (const CImg< T > &img, const bool compute_variance=true)
 Create a CImgStats object by computing the statistics of an image img. If compute_variance = true, the variance field of the CImgStats structure is computed, else it is set to zero.
template<typename T>  CImgStats (const CImgl< T > &list, const bool compute_variance=true)
 Create a CImgStats object by computing the statistics of a list of images list. If compute_variance = true, the variance field of the CImgStats structure is computed, else it is set to zero.
const CImgStatsprint (const char *title=NULL) const
 Print the current statistics on the standart error output.

Public Attributes

double min
 Minimum of the pixel values after statistics computation.
double max
 Maximum of the pixel values after statistics computation.
double mean
 Mean of the pixel values after statistics computation.
double variance
 Variance of the pixel values after statistics computation.


Detailed Description

This structure represents statistics of an image. Use it to compute basic statistics on pixel values, such as the minimum, maximum, average values and the variance of a CImg<T> images.


Generated on Tue Aug 10 17:35:47 2004 for The CImg Library by doxygen 1.3.8