You are here: Start » AVL.NET » 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, NullableRef<AvlNet.Region> inRoi, int inChannelIndex, float inBinSize, float inDomainBegin, float inDomainEnd, AvlNet.Histogram outHistogram )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRoi | AvlNet.NullableRef<AvlNet.Region> | Range of pixels to be processed. Default value: atl::NIL. | |||
inChannelIndex | int | <0, 3> | Selects a channel of the input image. | ||
inBinSize | float | <0.0f, INF> | 1.0f | Width of a single histogram bin. Default value: 1.0f. | |
inDomainBegin | float | 0.0f | The lowest value that will be considered in the output histogram. Default value: 0.0f. | ||
inDomainEnd | float | 256.0f | The upper-bound for values that will be considered in the output histogram. Default value: 256.0f. | ||
outHistogram | 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
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Selected bin size equals zero in ImageHistogram. |
DomainError | Selected channel index is out of range in ImageHistogram. |
DomainError | Selected domain has zero or negative size inImageHistogram. |