#include <DLImageStats.h>
Public Attributes | |
double | mean [3] |
double | median [3] |
double | sdev [3] |
double | skewness [3] |
double | kurtosis [3] |
The DLImageStats object contains statistics about an image, such as the mean and standard deviation of pixel values. It is generally created by calling DLImage::dlGetStats().
All statistics are calculated for the three color channels: red, green and blue, respectively. If an image is grayscale or binary, the three entries for each statistic will be set equal to each other. All statistics are public data members, and can be accessed as illustrated in the following example:
DLImage i("test.tif"); DLImageStats st = i.dlGetStats(); cout << "Mean of red channel: << st.mean[0] << "; mean of green channel: " << st.mean[1] << "; mean of blue channel: " << st.mean[2] << endl;
Definition at line 29 of file DLImageStats.h.
double DLImageStats::mean[3] |
Mean pixel values for each color channel. For grayscale and binary images, each entry will be equal.
where N is the number of pixels and are the individual pixel values.
Definition at line 39 of file DLImageStats.h.
double DLImageStats::median[3] |
Median pixel values per channel.
where is the kth order statistic.
Definition at line 48 of file DLImageStats.h.
double DLImageStats::sdev[3] |
double DLImageStats::skewness[3] |
Coefficient of skewness of pixel values. This is the third central moment divided by the cube of the sample standard deviation.
Definition at line 62 of file DLImageStats.h.
double DLImageStats::kurtosis[3] |
Coefficient of kurtosis of pixel values. This is the fourth central moment divided by the fourth power of the sample standard deviation.
Definition at line 70 of file DLImageStats.h.