Back to Aurora Vision Library website
You are here: Start » Function Reference » Histogram » Histogram Spatial Transforms » CropHistogram
CropHistogram
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Confines a histogram to its continuous segment.
Syntax
C++
C#
void avl::CropHistogram ( const avl::Histogram& inHistogram, const int inStart, const int inBinCount, 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 | ||
inBinCount | const int | 0 - | Number of bins in the output histogram | ||
outHistogram | Histogram& | Output histogram |
Description
Operation crops histogram to bins which are enclosed in inBinCount bins beginning from inStart bin.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Selected index range exceeds the input histogram in CropHistogram. |
See Also
- DivideHistogram – Divides each bin value by a number.
- MultiplyHistogram – Multiplies each bin value by a number.
- SubtractFromHistogram – Decreases each bin value by a number.