SkipEmptyHistogram
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#
Python
def SkipEmptyHistogram( inHistogram: Histogram, / ) -> ( outNotEmptyHistogram: Histogram | None, outIsNotEmpty: bool )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inHistogram | Histogram | Input histogram | |
![]() |
outNotEmptyHistogram | Histogram | None | The histogram, if it is not empty | |
![]() |
outIsNotEmpty | bool | Indication if the input histogram is not empty |


