http://www.emgu.com
calculates the object probability density from the two histograms as: dist_hist(I)=0, if hist1(I)==0; dist_hist(I)=scale, if hist1(I)!=0 && hist2(I)>hist1(I); dist_hist(I)=hist2(I)*scale/hist1(I), if hist1(I)!=0 && hist2(I)<=hist1(I)

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static void cvCalcProbDensity(
	IntPtr hist1,
	IntPtr hist2,
	IntPtr dstHist,
	double scale
)
Visual Basic
Public Shared Sub cvCalcProbDensity ( _
	hist1 As IntPtr, _
	hist2 As IntPtr, _
	dstHist As IntPtr, _
	scale As Double _
)
Visual C++
public:
static void cvCalcProbDensity(
	IntPtr hist1, 
	IntPtr hist2, 
	IntPtr dstHist, 
	double scale
)

Parameters

hist1
Type: System..::..IntPtr
First histogram (the divisor)
hist2
Type: System..::..IntPtr
Second histogram.
dstHist
Type: System..::..IntPtr
Destination histogram.
scale
Type: System..::..Double
Scale factor for the destination histogram.

See Also