IMcProfileEdgesWeights Property
|
|
Sample weights to use for the weighted average EdgeFindingMethod
approaches.
Namespace:
MediaCy.IQL.Features
Assembly:
MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
SyntaxProperty Weights As Object
Get
Set
Property Value
Type:
Object
RemarksThe weighted average methods EdgeFindingMethod values (mcpefmPeaks,
mcpefmValleys, mcpefmRisingEdges and mcpefmFallingEdges) give a designated
weight to each of MatchLength samples for each sample position along the
profile. The Weights property allows assignment of these weights, though the
default is usually satisfactory. By default the Weights are 0.6, 0.8, 1.0, 0.8,
0.6 (that is, the center point gets full weight and the profile samples on
either side are given slightly less weight). The Weights property array is
automatically mapped onto the MatchLength, so MatchLength could be changed to 7
for example without needing to change the Weights property (this would favor
more gradual transitions). Assigning to the Weights property does NOT disturb
the MatchLength property.
On assignment Weights array must be at least length 1, values must be
non-negative, and their sum must be non-zero. Before being used to produce the
WeightedProfiles, the array is mapped (stretched or interpolated) to the
MatchLength and then normalized so that its elements sum to 1.0.
The Weights property is exposed as an array of Double.
The Weights property is ignored for the mcpefmMatchPattern EdgeFindingMethod.
Examples
ThisApplication.ActiveImage.LineFeatures.Profiles.ProfileEdges.Weights = Array( 1#, 1#, 1#)
See Also