CorrelationCalculate Method (ImagePlane, ImagePlane, CorrelationMethod)

CVB.Net Documentation
Calculate the correlation between an plane and a template using a selectable calculation method.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image Calculate(
	ImagePlane plane,
	ImagePlane template,
	CorrelationMethod method
)

Parameters

plane
Type: Stemmer.CvbImagePlane
Image plane to perform the correlation on.
template
Type: Stemmer.CvbImagePlane
Template plane to perform the correlation with.
method
Type: Stemmer.Cvb.FoundationCorrelationMethod
Correlation method to use.

Return Value

Type: Image
Accumulator image (Float32Bpp).
Exceptions

ExceptionCondition
ObjectDisposedExceptionIf the plane to work on has already been disposed.
Remarks

The result of the correlation will be an accumulator image with 32 bit floating point pixels containing the results. The pixel (0, 0) of the accumulator corresponds to image position (int)(template width / 2, template height / 2) and its value will be a representation of the correlation between the input image and the template, centered around this very pixel.

See Also

Reference