You are here: Start » AVL.NET » AVL.CreateRectangleRegion Method
AVL.CreateRectangleRegion Method
Creates a region corresponding to a given rectangle.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void CreateRectangleRegion( AvlNet.Rectangle2D inRectangle, AvlNet.CoordinateSystem2D? inRectangleAlignment, int inFrameWidth, int inFrameHeight, out AvlNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRectangle | AvlNet.Rectangle2D | ||||
inRectangleAlignment | AvlNet.CoordinateSystem2D? | Adjusts the rectangle to the position of the inspected object. Default value: atl::NIL, or null. | |||
inFrameWidth | int | <0, INF> | Width of the created region's frame (not to be confused with the width of the rectangle!). | ||
inFrameHeight | int | <0, INF> | Height of the created region's frame (not to be confused with the height of the rectangle!). | ||
outRegion | AvlNet.Region | Output region. |
Description
The operation creates a region containing pixels lying inside the specified rectangle.
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 rectangle exceeds these dimensions, the output region will be cropped.