ImageStatistics Class |
Namespace: Accord.Imaging
The ImageStatistics type exposes the following members.
Name | Description | |
---|---|---|
ImageStatistics(Bitmap) |
Initializes a new instance of the ImageStatistics class.
| |
ImageStatistics(UnmanagedImage) |
Initializes a new instance of the ImageStatistics class.
| |
ImageStatistics(Bitmap, Byte) |
Initializes a new instance of the ImageStatistics class.
| |
ImageStatistics(Bitmap, Bitmap) |
Initializes a new instance of the ImageStatistics class.
| |
ImageStatistics(UnmanagedImage, UnmanagedImage) |
Initializes a new instance of the ImageStatistics class.
| |
ImageStatistics(UnmanagedImage, Byte) |
Initializes a new instance of the ImageStatistics class.
|
Name | Description | |
---|---|---|
Blue |
Histogram of blue channel.
| |
BlueWithoutBlack |
Histogram of blue channel excluding black pixels
| |
Gray |
Histogram of gray channel.
| |
GrayWithoutBlack |
Histogram of gray channel channel excluding black pixels.
| |
Green |
Histogram of green channel.
| |
GreenWithoutBlack |
Histogram of green channel excluding black pixels.
| |
IsGrayscale |
Value wich specifies if the processed image was color or grayscale.
| |
PixelsCount |
Total pixels count in the processed image.
| |
PixelsCountWithoutBlack |
Total pixels count in the processed image excluding black pixels.
| |
Red |
Histogram of red channel.
| |
RedWithoutBlack |
Histogram of red channel excluding black pixels.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
The class is used to accumulate statistical values about images, like histogram, mean, standard deviation, etc. for each color channel in RGB color space.
The class accepts 8 bpp grayscale and 24/32 bpp color images for processing.
Sample usage:
// gather statistics ImageStatistics stat = new ImageStatistics( image ); // get red channel's histogram Histogram red = stat.Red; // check mean value of red channel if ( red.Mean > 128 ) { // do further processing }