You are here: Start » AVL.NET » AVL.CreateCircleRegion Method

AVL.CreateCircleRegion Method

Creates a circular region corresponding to a given circle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreateCircleRegion(
	AvlNet.Circle2D inCircle,
	AvlNet.CoordinateSystem2D? inCircleAlignment,
	int inFrameWidth,
	int inFrameHeight,
	out AvlNet.Region outRegion,
	out AvlNet.Circle2D outAlignedCircle
)

Parameters

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

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).

See also