You are here: Start » AVL.NET » Function Reference » Image » Image Features » AVL.ImageHistogram

AVL.ImageHistogram

Computes the histogram of the image pixel values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ImageHistogram
(
	AvlNet.Image inImage,
	int inChannelIndex,
	float inDomainBegin,
	float inBinSize,
	int inBinCount,
	AvlNet.Histogram outHistogram
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inChannelIndexint<0, 3>Selects a channel of the input image.
inDomainBeginfloat0.0fThe lowest value that will be considered in the output histogram. Default value: 0.0f.
inBinSizefloat<0.0f, INF>1.0fWidth of a single histogram bin. Default value: 1.0f.
inBinCountint256The upper-bound for values that will be considered in the output histogram. Default value: 256.
outHistogramAvlNet.HistogramOutput 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

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in ImageHistogram.
DomainError Selected bin size equals zero in ImageHistogram.
DomainError Selected channel index is out of range in ImageHistogram.

Function Overrides

See also