http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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 ) |
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