Back to Aurora Vision Library website

You are here: Start » Function Reference » Histogram » Histogram Combinators » DivideHistograms

DivideHistograms


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Divides two histograms bar by bar.

Syntax

C++
C#
 
void avl::DivideHistograms
(
	const avl::Histogram& inHistogram1,
	const avl::Histogram& inHistogram2,
	avl::Histogram& outHistogram
)

Parameters

Name Type Default Description
Input value inHistogram1 const Histogram& Input histogram1
Input value inHistogram2 const Histogram& Input histogram2
Output value 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 quotient of two histograms. That is, each bin of the resulting histogram equals the quotient of corresponding bins of the input histograms.

Errors

List of possible exceptions:

Error type Description
DomainError Input histograms formats are not the same in DivideHistograms.
DomainError One of inHistogram2 bins equals zero in DivideHistograms.