You are here: Start » FIL.NET » Function Reference » Region » Region Features » FIL.RegionBoundingCircle

FIL.RegionBoundingCircle

Computes the smallest circle enclosing a region.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void RegionBoundingCircle
(
	FilNet.Region inRegion,
	out FilNet.Circle2D outBoundingCircle
)

Parameters

Name Type Range Default Description
inRegionFilNet.RegionInput region.
outBoundingCircleFilNet.Circle2D

Examples

The resulting outBoundingCircle circle drawn onto the input region.

Following example draws a red circle that bounds regions, which area is lower than 2000 pixels. It is a part of the bigger Blob Analysis Example.

foreach (Region mount in mounts)
{
    int area;
    FIL.RegionArea(mount, out area);
    if (area < 2000)
    {
        Circle2D circle;
        FIL.RegionBoundingCircle(mount, out circle);
        FIL.DrawCircle(mountsImage, circle, red, style);
    }
}

Errors

List of possible exceptions:

Error type Description
DomainError Empty region on input in RegionBoundingCircle.

See also