Back to FabImage Library website
You are here: Start » Function Reference » Histogram » Histogram Combinators » DifferenceHistogram

DifferenceHistogram
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Computes histogram representing difference between corresponding bars of given histograms.
Syntax
C++
C#
void fil::DifferenceHistogram ( const fil::Histogram& inHistogram1, const fil::Histogram& inHistogram2, fil::Histogram& outHistogram )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inHistogram1 | const Histogram& | Input histogram1 | |
![]() |
inHistogram2 | const Histogram& | Input histogram2 | |
![]() |
outHistogram | Histogram& | Output histogram |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inHistogram1 and outHistogram, inHistogram2 and outHistogram
Read more about In-place Computation.
Description
The operation computes the absolute difference between histograms. That is, each bin of the resulting histogram equals the absolute value of difference between corresponding bins of the input histograms.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input histograms formats are not the same in DifferenceHistogram. |