C# Class Encog.Neural.NeuralData.Image.ImageNeuralData

An extension of the BasicNeuralData class that is designed to hold images for input into a neural network. This class should only be used with the ImageNeuralDataSet collection. This class provides the ability to associate images with the elements of a dataset. These images will be downsampled to the resolution specified in the ImageNeuralData set class that they are added to.
Inheritance: Encog.Neural.Data.Basic.BasicNeuralData
Exibir arquivo Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Downsample ( IDownSample downsampler, bool findBounds, int height, int width, double hi, double lo ) : void

Downsample, and copy, the image contents into the data of this object. Calling this method has no effect on the image, as the same image can be downsampled multiple times to different resolutions.

ImageNeuralData ( Bitmap image ) : System

Construct an object based on an image.

ToString ( ) : String

Return a string representation of this object.

Method Details

Downsample() public method

Downsample, and copy, the image contents into the data of this object. Calling this method has no effect on the image, as the same image can be downsampled multiple times to different resolutions.
public Downsample ( IDownSample downsampler, bool findBounds, int height, int width, double hi, double lo ) : void
downsampler IDownSample The downsampler object to use.
findBounds bool Should the bounds be located and cropped.
height int The height to downsample to.
width int The width to downsample to.
hi double The high value to normalize to.
lo double The low value to normalize to.
return void

ImageNeuralData() public method

Construct an object based on an image.
public ImageNeuralData ( Bitmap image ) : System
image System.Drawing.Bitmap The image to use.
return System

ToString() public method

Return a string representation of this object.
public ToString ( ) : String
return String