TestImages Class |
Namespace: Accord.DataSets
The TestImages type exposes the following members.
Name | Description | |
---|---|---|
TestImages |
Downloads and prepares the test images dataset.
|
Name | Description | |
---|---|---|
CorrectIndexedPalettes |
Gets or sets whether images with non-standard color palettes (i.e. 8-bpp images where
values do not represent intensity values but rather indices in a color palette) should
be converted to true 8-bpp grayscale. Default is true.
| |
ImageNames |
Gets all the image names that can be passed to
the GetImage(String) method.
| |
Item |
Gets the example Bitmap with the specified name.
|
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.) | |
GetImage |
Gets the example image.
| |
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.) |
This dataset contains famous images used in the image processing literature, such as Lena Söderberg picture.
Using this class, you can retrieve any of the following famous test images:
References:
// Let's load an example image, such as Lena, // from a standard dataset of example images: var images = new TestImages(path: localPath); Bitmap lena = images["lena.bmp"]; // Create a new Histogram of Oriented Gradients with the default parameter values: var hog = new HistogramsOfOrientedGradients(numberOfBins: 9, blockSize: 3, cellSize: 6); // Use it to extract descriptors from the Lena image: List<double[]> descriptors = hog.ProcessImage(lena); // Now those descriptors can be used to represent the image itself, such // as for example, in the Bag-of-Visual-Words approach for classification.