SeparateObjects creates a list (IERectList) of IERect rectangles. Each rectangle encloses a found objects.
This method works well to separate photos or simple objects over a white or black background. The background cannot contain a pattern.
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.0.0.0
|C#||Visual Basic||Visual C++|
Specifies the contour search routine definition. Minimum value is 1, suggested is 4. Lower values increases speed, but could not recognize complex objects like characters.
If mergeCommonAreas is true, when two rectangles intersects they are merged. When it is false, two rectangles are merged only if they are inclusive.
Return ValueReturns a IERectList representing a list of found rectangles.
IERectList rects = ieViewer1.Image.SeparateObjects(4, true); ... rects.Dispose();