Back to Aurora Vision Library website

You are here: Start » Function Reference » Histogram » Histogram Basics » SkipEmptyHistogram

SkipEmptyHistogram


Header: AVL.h
Namespace: avl
Module: FoundationBasic

If the input histogram contains at least one bin, then it is copied to the output; otherwise Nil is returned.

Applications: Secures against domain errors caused by empty histograms, e.g. just before the HistogramAverage filter is to be invoked.

Syntax

C++
C#
 
void avl::SkipEmptyHistogram
(
	const avl::Histogram& inHistogram,
	atl::Conditional<avl::Histogram>& outNotEmptyHistogram,
	bool& outIsNotEmpty
)

Parameters

Name Type Default Description
Input value inHistogram const Histogram& Input histogram
Output value outNotEmptyHistogram Conditional<Histogram>& The histogram, if it is not empty
Output value outIsNotEmpty bool& Indication if the input histogram is not empty