Get objects’ rectangles.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public Rectangle[] GetObjectsRectangles() |
Return Value
Returns array of objects’ rectangles.
Remarks
The method returns array of objects rectangles. Before calling the
method, the ProcessImage(Bitmap), ProcessImage(BitmapData)
or ProcessImage(UnmanagedImage) method should be called, which will
build objects map.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ApplicationException | No image was processed before, so objects’ rectangles can not be collected. |