Back to FabImage Library website
You are here: Start » Function Reference » Histogram » Histogram Basics » SkipEmptyDataHistogram

SkipEmptyDataHistogram
Header: | FIL.h |
---|---|
Namespace: | fil |
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 fil::SkipEmptyDataHistogram ( const fil::Histogram& inHistogram, ftl::Conditional<fil::Histogram>& outNotEmptyDataHistogram, bool& outIsNotEmpty )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
outNotEmptyDataHistogram | Conditional<Histogram>& | ||
![]() |
outIsNotEmpty | bool& |