Click or drag to resize

IMcLineProfilesCountOfProfiles Property

A read-only property giving the count of line profiles available in the ProfileValues property.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Property CountOfProfiles As Integer
	Get

Property Value

Type: Int32
Remarks
Luminance profiles are available in ProfileValues for all of the ancestor line features (McFeatures.Count). This property reflects that count. It also will be the full array length available from the NumberOfSamples and LengthPerSample properties. If IsStale goes True, this property is recomputed when accessed.
Examples
VB
'Show what type of feature each profile is based on
Sub ShowTypeOfFeatureForEachProfile(ByRef myProfile As McLineProfiles)
Dim mcfeaturesAncestor As McFeatures
Set mcfeaturesAncestor = AncestorOfOperator(myProfile, "McFeatures")
Dim lP As Long
For lP = 0 To myProfile.CountOfProfiles - 1
Dim fType As mcFeaturesType
fType = mcfeaturesAncestor.Type(lP)
If fType = mcftPolyline Then
Debug.Print "Profile " & lP & " is based on a polyline."
ElseIf fType = mcftLine Then
Debug.Print "Profile " & lP & " is based on a simple line."
ElseIf (fType And mcftEmptyRegions) <> 0 Then
Debug.Print "Profile " & lP & " is based on a region boundary."
Else
Debug.Print "ErrorProfile based on unknown feature type."
End If
Next lP
End Sub 'ShowTypeOfFeatureForEachProfile
Sub DoShowTypeOfFeatureForEachProfile()
ShowTypeOfFeatureForEachProfile ThisApplication.ActiveImage.LineFeatures.Profiles
ShowTypeOfFeatureForEachProfile ThisApplication.ActiveImage.Aoi.Profiles
End Sub
See Also