Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Tiling » EnumerateImageTiles
EnumerateImageTiles
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Enumerates tiles from image.
Syntax
C++
C#
bool avl::EnumerateImageTiles ( EnumerateImageTilesState& ioState, const avl::Image& inImage, int inTileWidth, atl::Optional<int> inTileHeight, bool inOverflowControl, const int inDelay, avl::Image& outTile, atl::Optional<bool&> outIsFirst = atl::NIL, atl::Optional<bool&> outIsLast = atl::NIL, avl::Box& diagTilePosition = atl::Dummy<avl::Box>() )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | EnumerateImageTilesState& | Object used to maintain state of the function. | |||
inImage | const Image& | Image to be enumerated | |||
inTileWidth | int | 1 - | 1 | Tile width | |
inTileHeight | Optional<int> | 1 - | NIL | Tile height | |
inOverflowControl | bool | Allow overflow | |||
inDelay | const int | Minimum time between iterations in milliseconds | |||
outTile | Image& | ||||
outIsFirst | Optional<bool&> | NIL | Flag indicating the first iteration | ||
outIsLast | Optional<bool&> | NIL | Flag indicating the last iteration | ||
diagTilePosition | Box& | Cut out tile position. |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL
to these parameters: outIsFirst, outIsLast.
Read more about Optional Outputs.
Description
Cuts out a tile from inImage and serves them one by one. Tile dimensions cannot be changed during image traversal.
Examples
See Also
- JoinImageTiles – Joins previously cut tiles into single image.
- CutImageIntoTiles – Generates an array of small images by cutting the input image.
- JoinImageTiles – Joins previously cut tiles into single image.