DLHistogram Class Reference

Calculate the Histogram of an image. More...

#include <DLHistogram.h>

List of all members.

Static Public Member Functions

static vector< int > dlHistogramImage (const DLImage &image)


Detailed Description

Calculate the Histogram of an image.

Definition at line 12 of file DLHistogram.h.


Member Function Documentation

static vector<int> DLHistogram::dlHistogramImage ( const DLImage image  )  [static]

Computes a histogram of pixel values for a binary or grayscale image. The function returns the histogram as an STL vector; the first element records the number of pixels with pixel value 0, and so on. For binary images, the histogram vector will contain two elements, and for grayscale images, the histogram vector will contain 256.

Parameters:
image DLImage(bw or gray) to generate histogram for
Returns:
Histogram data


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

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007