Back to Adaptive Vision Library website

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

CropHistogram


Confines a histogram to its continuous segment.

Header:AVL.h

Syntax

C++
C#
 
void avl::CropHistogram
(
	const avl::Histogram& inHistogram,
	const int inStart,
	const int inLength,
	avl::Histogram& outHistogram
)

Parameters

Name Type Range Default Description
inHistogram const Histogram& Input histogram
inStart const int 0 - Index of the first element of the input histogram that will be included in the output histogram
inLength const int 0 - Number of bins in the output histogram
outHistogram Histogram& Output histogram

Description

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

Examples

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

Errors

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

See Also