Declaration
TIEVisionGrabCut = interface(TIEVisionBase)
Description
An interface to automatically select a region.
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;
See Also
◼createGrabCut