TIEVisionGrabCut.setSelectionMask
Declaration
procedure setSelectionMask(selectionMask: TIEMask); safecall;
Description
Call this methods before
run to set initial selection (must contains only actual foreground pixels).
setForegroundRect can be called also to restrict selection area.
Parameter | Description |
selectionMask | A TIEMask containing (set 1 or 255) foreground pixels |
maskIsInside | If True the mask is inside the foreground, otherwise it is around the foreground |
Video
| Demos\IEVision\GrabCutSelection\GrabCutSelection.dpr |
gc.setSelectionMask(ImageEnView1.SelectionMask);