Class
Histogram

Image histogram.

Definition

Namespace:ArtOfTest.Common

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class Histogram

Inheritance: objectHistogram

Constructors

Histogram(double[])

Initialize a histogram it an initial value set.

Declaration

cs-api-definition
public Histogram(double[] graph)

Parameters

graph

double[]

Properties

Data

The data for the comparison

Declaration

cs-api-definition
public double[] Data { get; }

Property Value

double[]

Methods

Compare(Histogram)

Compare two histograms and return the difference. This number represents the percent of pixels that different between the two histograms.

Declaration

cs-api-definition
public double Compare(Histogram histogramToCompare)

Parameters

histogramToCompare

Histogram

Returns

double

FromBitmap(Bitmap)

Given a bitmap, returns its histogram.

Declaration

cs-api-definition
public static Histogram FromBitmap(Bitmap bitmap)

Parameters

bitmap

Bitmap

The bitmap to use.

Returns

Histogram

The histogram of the bitmap.

FromPixelMap(PixelMap)

Build a histogram from the pixel map.

Declaration

cs-api-definition
public static Histogram FromPixelMap(PixelMap map)

Parameters

map

PixelMap

Returns

Histogram

FromXmlFile(string)

Create a histogram from a file.

Declaration

cs-api-definition
public static Histogram FromXmlFile(string filePath)

Parameters

filePath

string

The file path.

Returns

Histogram

A histogram object.