Get objects' rectangles.

Namespace:  AForge.Imaging
Assembly:  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

ExceptionCondition
System..::.ApplicationExceptionNo image was processed before, so objects' rectangles can not be collected.

See Also