TIEVisionLibrary.createGrabCut
Declaration
function createGrabCut(): TIEVisionGrabCut; safecall;
Description
Create a
TIEVisionGrabCut object.
Video
| Demos\IEVision\GrabCutSelection\GrabCutSelection.dpr |
var
gc: TIEVisionGrabCut;
begin
gc := IEVisionLib().createGrabCut();
gc.setInputImage(ImageEnView1.IEBitmap.GetIEVisionImage());
gc.setForegroundRect(IEVisionRect(ImageEnView1.SelectedRect));
gc.run(5);
ImageEnView1.Deselect;
gc.getSelectionMask(ImageEnView1.SelectionMask);
ImageEnView1.SelectCustom();
end;