TIEVisionWatershed.getSelectionMask
Declaration
procedure getSelectionMask(selectionMask: IIEMask; markerLabel: int32_t); safecall;
Description
Convert a markers bitmap to selection. Only specified regions (markerLabel) are selected in selectionMask.
Here is an example Watershed image:
Which generates the following selection:
Parameter | Description |
selectionMask | Selection mask to set |
markerLabel | Region to select |
Videos
| Demos\IEVision\WatershedSelection\WatershedSelection.dpr |
ws.run();
ImageEnView1.Deselect();
ws.getSelectionMask(ImageEnView1.SelectionMask, 1); // select region 1
ImageEnView1.SelectCustom();