Click or drag to resize

IMcMeasuresRemove Method

Internally used method to Remove a measurement operator (or all opererators) from the collection.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
Sub Remove ( 
	MeasureIdToRemove As Integer
)

Parameters

MeasureIdToRemove
Type: SystemInt32
If 0, the collection is emptied. Otherwise must be the Measurement ID an McMeasure operator. You may determine the Measurement ID from the Attributes(mcmaidID) property.
Remarks
You will generally not need to call this method. However under rare circumstances you may wish to remove a measurement that you will not be using again. A measurement object removed from the collection will no longer have its SetValueStale method called automatically. Thus its Value will not be recomputed when the standard dependencies change. To reactivate a measurement you would need to call the Add method explicitly.
Examples
VB
'Keep only measurements in the mcmcfHousekeeping category in the collection
With ThisApplication.ActiveImage.RegionFeatures.
Measures.AddAll 'add all possible measurements
Dim NextMcMeasure As McMeasure
For Each NextMcMeasure In .Measures
If NextMcMeasure.Attributes(mcmaidCategories) And mcmcfHousekeeping = 0 Then
.Measures.Remove ThisApplication.McObject(NextMcMeasure)
End If 'not a housekeeping measurement, so remove it from collection
Next 'NextMcMeasure
.Measures.SelectAll 'enable all measurements still in the collection
End With
See Also