ImageEn, unit ievision

TIEVisionGrabCut.setSelectionMask

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

Demo  youtu.be/H9N94bHOdew


Demo

Demo  Demos\IEVision\GrabCutSelection\GrabCutSelection.dpr


Example

gc.setSelectionMask(ImageEnView1.SelectionMask);