A single histogram result. More...
Inherits IList< long >.
Public Member Functions | |
int | IndexOf (long count) |
Gets the index of the first found count . More... | |
void | Insert (int index, long count) |
Not supported as the histogram is read-only. More... | |
void | RemoveAt (int index) |
Not supported as the histogram is read-only. More... | |
void | Add (long count) |
Not supported as the histogram is read-only. More... | |
void | Clear () |
Not supported as the histogram is read-only. More... | |
bool | Contains (long count) |
Gets whether the count is inside this histogram. More... | |
void | CopyTo (long[] array, int arrayIndex) |
Copies the elements of this histogram to the given array starting at arrayIndex . More... | |
bool | Remove (long count) |
Not supported as the histogram is read-only. More... | |
IEnumerator< long > | GetEnumerator () |
Gets the enumerator enumerating this histogram. More... | |
Properties | |
long | NumPixels [get] |
Total number of pixels taken into account. | |
long | Median [get] |
The median (gray value at which roughly 50% of the pixels are darker and 50% of the pixels are brighter than this gray value). | |
double | Mean [get] |
Mean value of all pixels. | |
double | Mode [get] |
Gets the mode (the most common gray value) of the histogram. | |
double | Min [get] |
Get the minimum gray value of the histogram. | |
double | Max [get] |
Get the maximum gray value of the histogram. | |
double | Variance [get] |
Get the variance of the histogram. | |
double | StandardDeviation [get] |
Get the standard deviation of the histogram. | |
int | Count [get] |
Gets the number of elements in this histogram. More... | |
long | this[int i] [get] |
The indexer for accessing the histogram data itself. | |
bool | IsReadOnly [get] |
The histogram data is read-only. | |
A single histogram result.
void Add | ( | long | count | ) |
Not supported as the histogram is read-only.
count | Ignored. |
InvalidOperationException | Always thrown as this is a read-only collection. |
void Clear | ( | ) |
Not supported as the histogram is read-only.
InvalidOperationException | Always thrown as this is a read-only collection. |
bool Contains | ( | long | count | ) |
Gets whether the count is inside this histogram.
count | Numeric count of gray value to test. |
true
if the count is present; false
if not. void CopyTo | ( | long[] | array, |
int | arrayIndex | ||
) |
Copies the elements of this histogram to the given array starting at arrayIndex .
array | Destination array. |
arrayIndex | Zero based index in array at which copying begins. |
IEnumerator< long > GetEnumerator | ( | ) |
Gets the enumerator enumerating this histogram.
int IndexOf | ( | long | count | ) |
Gets the index of the first found count .
count | Count of gray value to find. |
void Insert | ( | int | index, |
long | count | ||
) |
Not supported as the histogram is read-only.
index | Ignored. |
count | Ignored. |
InvalidOperationException | Always thrown as this is a read-only collection. |
bool Remove | ( | long | count | ) |
Not supported as the histogram is read-only.
count | Ignored. |
InvalidOperationException | Always thrown as this is a read-only collection. |
void RemoveAt | ( | int | index | ) |
Not supported as the histogram is read-only.
index | Ignored. |
InvalidOperationException | Always thrown as this is a read-only collection. |
|
get |
Gets the number of elements in this histogram.
The number of elements corresponds to the number of possible gray values.