You are here: Start » AVL.NET » AVL.ImageHistogram(AvlNet.Image, AvlNet.Region, int, float, float, float, AvlNet.Histogram)

AVL.ImageHistogram(AvlNet.Image, AvlNet.Region, int, float, float, float, AvlNet.Histogram)

Computes the histogram of the image pixel values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ImageHistogram(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	int inChannelIndex,
	float inBinSize,
	float inDomainBegin,
	float inDomainEnd,
	out AvlNet.Histogram outHistogram
)

Parameters

inImage
Type: AvlNet.Image
Input image
inRoi
Type: AvlNet.Region
Range of pixels to be processed, or null.
inChannelIndex
Type: System.Int32
Selects a channel of the input image
inBinSize
Type: System.Single
Width of a single histogram bin
inDomainBegin
Type: System.Single
The lowest value that will be considered in the output histogram
inDomainEnd
Type: System.Single
The upper-bound for values that will be considered in the output histogram
outHistogram
Type: AvlNet.Histogram
Output histogram

Description

Histogram in Adaptive Vision Studio is a graphical representation of data contained in image. That is, the resulting histogram contains number of pixel values from specified channel with selected inBinSize (interval).

Examples

ImageHistogram performed on the Lena image with inChannelIndex = 0, inBinSize = 1.

Errors

Error type Description
DomainError Selected channel index is out of range in ImageHistogram.
DomainError Selected bin size equals zero in ImageHistogram.
DomainError Selected domain has zero or negative size inImageHistogram.

See also