You are here: Start » AVL.NET » AVL.CreateCircleRegion(AvlNet.Circle2D, AvlNet.CoordinateSystem2D?, int, int, AvlNet.Region, AvlNet.Circle2D)

AVL.CreateCircleRegion(AvlNet.Circle2D, AvlNet.CoordinateSystem2D?, int, int, AvlNet.Region, AvlNet.Circle2D)

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

inCircle
Type: AvlNet.Circle2D
inCircleAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
Adjusts the circle to the position of the inspected object, or null.
inFrameWidth
Type: System.Int32
Width of the created region's frame (not to be confused with the size of the circle!)
inFrameHeight
Type: System.Int32
Height of the created region's frame (not to be confused with the size of the circle!)
outRegion
Type: AvlNet.Region
Output region
outAlignedCircle
Type: AvlNet.Circle2D

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