Description

The channel on which to find edges.

Property type

A Long value.  

Syntax

object.ChannelOfInterest [= value]

The ChannelOfInterest Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McProfileEdges.
valueA Long value.

Remarks

FindEdges always works from the luminance profile of a single color channel. For cases where the ancestor McLineProfiles.Interpretation property is such that McLineProfiles.NumberOfChannels is more than one, this property specifies which profile channel to analyze.

Note that setting the McLineProfiles.Interpretation property to mciMonochrome will ensure that McLineProfiles.NumberOfChannels is one, and that the ProfileValues will expose intensity profiles, no matter what the underlying color interpretation of the ancestor McImage might be.

In rare cases, one may wish to find edges based on profile information from more than one color channel. In these cases, you can instantiate multiple instances of McProfileEdges, assign ChannelOfInterest for each and set up different weighting parameters for each channel of interest. A call to FindEdges on each instance will compute WeightedProfiles for each channel. You could then combine the WeightedProfiles from each channel and assign that as the WeightedProfiles for another McProfileEdges instance. This “combined” McProfileEdges instance will then detect and display any edges where the assigned WeightedProfiles are above ThresholdForEdge.

Exceptions

An assigned value must be less than the ancestor McLineProfiles.NumberOfChannels.