Start » Filter Reference » Region » Region Basics » CreateBoxRegion
Module: | FoundationLite |
---|
Creates a rectangular region corresponding to a given box.
Name | Type | Range | Description | |
---|---|---|---|---|
inBox | Box | A box defining pixels that will be converted to white elements | ||
inFrameWidth | Integer | 0 - 65535 | Width of the created region's frame (not to be confused with the width of the box!) | |
inFrameHeight | Integer | 0 - 65535 | Height of the created region's frame (not to be confused with the height of the box!) | |
outRegion | Region | Output region |
Description
The operation creates a region containing pixels lying inside the inBox.
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 box exceeds these dimensions, the output region will be cropped.
Hints
- Remember to set inFrameWidth and inFrameHeight inputs to specify the region frame.
Examples
Description of usage of this filter can be found in examples and tutorial: Dynamic Template Matching, Brick destroy (Game).
Complexity Level
This filter is available on Basic Complexity Level.
See Also
- CreateEllipseRegion – Creates an elliptic region of given bounding rectangle.
- CreatePolygonRegion – Creates a polygonal region corresponding to a given closed path.