|
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
)
Protected MustOverride Function Average (
labels As Integer(),
shapes As T(),
<OutAttribute> ByRef neighborCounts As Integer()
) As T()
Request Example
View SourceParameters
- 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