ImageEn, unit ievision

TIEVisionWatershed.getSelectionMask

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

Demo  youtu.be/Zp4snU4p9qQ
Demo  youtu.be/bu9GPE7pxSI
Demo  youtu.be/XWtoaljsfkE


Demo

Demo  Demos\IEVision\WatershedSelection\WatershedSelection.dpr


Example

ws.run();
ImageEnView1.Deselect();
ws.getSelectionMask(ImageEnView1.SelectionMask, 1); // select region 1
ImageEnView1.SelectCustom();