You are here: Start » AVL.NET » Function Reference » Histogram » Histogram Spatial Transforms » AVL.CropHistogram

AVL.CropHistogram

Confines a histogram to its continuous segment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CropHistogram
(
	AvlNet.Histogram inHistogram,
	int inStart,
	int inBinCount,
	AvlNet.Histogram outHistogram
)

Parameters

Name Type Range Default Description
inHistogramAvlNet.HistogramInput histogram.
inStartint<0, INF>Index of the first element of the input histogram that will be included in the output histogram.
inBinCountint<0, INF>Number of bins in the output histogram.
outHistogramAvlNet.HistogramOutput histogram.

Description

Operation crops histogram to bins which are enclosed in inBinCount bins beginning from inStart bin.

Examples

CropHistogram performed on the sample histogram with inStart = 15, inBinCount = 65.

Errors

List of possible exceptions:

Error type Description
DomainError Selected index range exceeds the input histogram in CropHistogram.

See also