version 3.3

VRS::ImageHistogram Class Reference

Image Histogram. More...

#include <vrs/image/imagehistogram.h>

Inheritance diagram for VRS::ImageHistogram:

VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ImageHistogram (Image *analyzedImage, int imageLayer)
virtual ~ImageHistogram ()
void clear ()
void accumulate (Image *image, int imageLayer=-1)
int tableSize () const
unsigned long table (int i) const
int minValue () const
int maxValue () const
unsigned long samples () const
double meanValue () const
 VRS_TYPEINFO (ImageHistogram, SharedObj)

Static Public Member Functions

static void autoContrast (Image *image, int imageLayer)


Detailed Description

Image Histogram.

Constructor & Destructor Documentation

VRS::ImageHistogram::ImageHistogram ( Image analyzedImage,
int  imageLayer 
)

virtual VRS::ImageHistogram::~ImageHistogram (  )  [virtual]

Computes the histogram for a given image, i.e., statistical information about the pixel values, their numbers and distribution. The histogram can analyze unsigned-char images only!


Member Function Documentation

void VRS::ImageHistogram::clear (  ) 

void VRS::ImageHistogram::accumulate ( Image image,
int  imageLayer = -1 
)

The clear method resets all statistical information. The accumulation method reads the specified image layer of the specified image.

int VRS::ImageHistogram::tableSize (  )  const

unsigned long VRS::ImageHistogram::table ( int  i  )  const

The histogram consists of a table whose entries record how many times pixel values are contained in the analyzed image(s). The table has 256 entries (table size = 256).

int VRS::ImageHistogram::minValue (  )  const

int VRS::ImageHistogram::maxValue (  )  const

unsigned long VRS::ImageHistogram::samples (  )  const

double VRS::ImageHistogram::meanValue (  )  const

static void VRS::ImageHistogram::autoContrast ( Image image,
int  imageLayer 
) [static]

Autocontrast scale the pixel values of the specified image in the specified image layer such that the current miminum value maps to 0 and the current maximum value maps to 255. The method constructs internally a histogram for the given image.

VRS::ImageHistogram::VRS_TYPEINFO ( ImageHistogram  ,
SharedObj   
)


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:18 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact