Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Tiling » CreateImageTiles_AsBoxes
CreateImageTiles_AsBoxes
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Generates an array of boxes covering the area of an image.
Syntax
C++
C#
void avl::CreateImageTiles_AsBoxes ( const avl::Size& inImageSize, const int inTileWidth, atl::Optional<int> inTileHeight, atl::Optional<int> inHorizontalStep, atl::Optional<int> inVerticalStep, const avl::OverflowControl::Type inOverflowControl, atl::Array<avl::Box>& outTileBoxes, int& outRowCount, int& outColumnCount )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImageSize | const Size& | Format of image for which tiles will be produced. | |||
inTileWidth | const int | 1 - | 32 | Demanded tile width. | |
inTileHeight | Optional<int> | 1 - | NIL | Demanded tile height; equals inTileWidth when set to Auto. | |
inHorizontalStep | Optional<int> | 1 - | NIL | Defines horizontal space between consecutive tiles; defaults to tile width. Can be used to produce overlapping tiles. | |
inVerticalStep | Optional<int> | 1 - | NIL | Defines vertical space between consecutive tiles; defaults to tile height. Can be used to produce overlapping tiles. | |
inOverflowControl | const OverflowControl::Type | KeepLast | Define what to do when overflowing tiles are present. | ||
outTileBoxes | Array<Box>& | Array containing produced tiles. | |||
outRowCount | int& | Number of generated tiles rows. | |||
outColumnCount | int& | Number of generated tiles per row. |
Description
Creates an array of boxes.
Examples
See Also
- JoinImageTiles – Joins previously cut tiles into single image.
- CutImageIntoTiles – Generates an array of small images by cutting the input image.