http://www.emgu.com
Compares histogram, computed over each possible rectangular patch of the specified size in the input images, and stores the results to the output map dst.

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

Syntax

C#
public static void cvCalcBackProjectPatch(
	IntPtr[] images,
	IntPtr dst,
	Size patchSize,
	IntPtr hist,
	HISTOGRAM_COMP_METHOD method,
	double factor
)
Visual Basic
Public Shared Sub cvCalcBackProjectPatch ( 
	images As IntPtr(),
	dst As IntPtr,
	patchSize As Size,
	hist As IntPtr,
	method As HISTOGRAM_COMP_METHOD,
	factor As Double
)
Visual C++
public:
static void cvCalcBackProjectPatch(
	array<IntPtr>^ images, 
	IntPtr dst, 
	Size patchSize, 
	IntPtr hist, 
	HISTOGRAM_COMP_METHOD method, 
	double factor
)
F#
static member cvCalcBackProjectPatch : 
        images : IntPtr[] * 
        dst : IntPtr * 
        patchSize : Size * 
        hist : IntPtr * 
        method : HISTOGRAM_COMP_METHOD * 
        factor : float -> unit 

Parameters

images
Type: array<System..::..IntPtr>[]()[][]
Source images (though, you may pass CvMat** as well), all of the same size
dst
Type: System..::..IntPtr
Destination image.
patchSize
Type: System.Drawing..::..Size
Size of patch slid though the source images.
hist
Type: System..::..IntPtr
Histogram
method
Type: Emgu.CV.CvEnum..::..HISTOGRAM_COMP_METHOD
Comparison methof
factor
Type: System..::..Double
Normalization factor for histograms, will affect normalization scale of destination image, pass 1. if unsure.

Remarks

In pseudo-code the operation may be written as: for (x,y) in images (until (x+patch_size.width-1,y+patch_size.height-1) is inside the images) do compute histogram over the ROI (x,y,x+patch_size.width,y+patch_size.height) in images (see cvCalcHist) normalize the histogram using the factor (see cvNormalizeHist) compare the normalized histogram with input histogram hist using the specified method (see cvCompareHist) store the result to dst(x,y) end for

See Also