#include <DLHistogram.h>
Static Public Member Functions | |
static vector< int > | dlHistogramImage (const DLImage &image) |
Definition at line 12 of file DLHistogram.h.
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.
image | DLImage(bw or gray) to generate histogram for |