You are here: Start » AVL.NET » Function Reference » Region » Region Basics » AVL.CreateCircleRegion

AVL.CreateCircleRegion

Creates a circular region corresponding to a given circle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateCircleRegion
(
	AvlNet.Circle2D inCircle,
	AvlNet.CoordinateSystem2D? inCircleAlignment,
	int inFrameWidth,
	int inFrameHeight,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inCircleAvlNet.Circle2D
inCircleAlignmentAvlNet.CoordinateSystem2D?Adjusts the circle to the position of the inspected object. Default value: atl::NIL.
inFrameWidthint<0, 65535>Width of the created region's frame (not to be confused with the size of the circle!).
inFrameHeightint<0, 65535>Height of the created region's frame (not to be confused with the size of the circle!).
outRegionAvlNet.RegionOutput region.

Description

The operation creates a region containing pixels lying inside the given circle.

The inFrameWidth and inFrameHeight parameters most often should be set equal to the dimensions of the image this region will be used with. If the input circle exceeds these dimensions, the output region will be cropped.

Examples

CreateCircleRegion run with inCircle = Circle2D(150,150,100).

Function Overrides

See also