Back to Aurora Vision Library website

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

SkipEmptyDataHistogram


Header: AVL.h
Namespace: avl
Module: FoundationBasic

If the input histogram contains any non-zero bin, then the histogram is copied to the output; otherwise Nil is returned.

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

Syntax

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

Parameters

Name Type Default Description
Input value inHistogram const Histogram& Input histogram
Output value outNotEmptyDataHistogram Conditional<Histogram>&
Output value outIsNotEmpty bool&