This tool allows the user to select the interior of a region to be created by clicking the mouse on the interior point of interest. When invoked on a McGraphOverlay that is being displayed in an McView, the tool shows a magic wand icon whenever the cursor passes into the viewed client window. When the left mouse button is pressed, then the point under the wand is used as the seed point for a threshold Execute operation.
The McGraphOverlay operator upon which the tool is selected (via McGraphOverlay.SelectTool) must have the same ancestor McImage as the one notifying McView.ImageToDisplay. This will always be the case if you invoke the tool on the McImage.ImageToolsOverlay (see example).
An unnamed temporary McRegions instance is created and is used to get the seeded region (via a call to McRegions.Threshold.Execute with the SeedPoint argument set). This working McRegions operator will be a child of the the ancestor image of the McGraphOverlay on which the McSeedRegionTool has been invoked (via a call to McGraphOverlay.SelectTool). It can be accessed using the mcsrtcfGetWorkingMcRegions action CommandFlag (see example).
The Threshold property of this working McRegions instance is where the detection is done, and so it is where you need to change properties that control the seeded region thresholding when the defaults won't do. In particular, by default the working McThreshold.AutoFindPhase property will have its mcfpIgnoreAoi bit set, so that the detected region will not be bounded by any image Aoi. Also the default McThreshold.Interpretation property will be mctiMonochrome, so that intensity, not color, thresholding is done. The McThreshold.ChannelMask property will be the default of -1 so that all channels are thresholded for color Interpretations. And finally, all IntensityRange Start-End pairs are set to 1/16 of the difference between McImage.RangeMax and McImage.RangeMin, so this will be the range of channel intensities detected about the seed point intensity.