Click or drag to resize
Accord.NET (logo)

GroupMatching< T> . Average Method

When overridden in a child class, should compute an average of the shapes given as parameters.

Namespace:  Accord.Vision
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.8.0
Syntax
protected abstract T[] Average(
	int[] labels,
	T[] shapes,
	out int[] neighborCounts
)
Request Example View Source

Parameters

labels
Type:System.Int32[]
The label of each shape.
shapes
Type:T[]
The shapes themselves.
neighborCounts
Type:System.Int32[]
Should return how many neighbors each shape had.

Return Value

Type:T[]
The averaged shapes found in the given parameters.
See Also