Click or drag to resize
Accord.NET (logo)

TestImages Class

Public-Domain test images for image processing applications.
Inheritance Hierarchy
SystemObject
  Accord.DataSetsTestImages

Namespace:  Accord.DataSets
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public class TestImages
Request Example View Source

The TestImages type exposes the following members.

Constructors
  NameDescription
Public methodTestImages
Downloads and prepares the test images dataset.
Top
Properties
  NameDescription
Public propertyCorrectIndexedPalettes
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.
Public propertyImageNames
Gets all the image names that can be passed to the GetImage(String) method.
Public propertyItem
Gets the example Bitmap with the specified name.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImage
Gets the example image.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(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.)
Public Extension MethodToTOverloaded.
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.)
Top
Remarks

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:

Examples
// 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.
See Also