Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Tiling » EnumerateImageTiles
![](../../img/icon/ImageTiles.png)
EnumerateImageTiles
Header: | AVL.h |
---|---|
Namespace: | avl |
Enumerates tiles from image.
Syntax
C++
C#
bool avl::EnumerateImageTiles ( const avl::Image& inImage, const int inTileWidth, atl::Optional<int> inTileHeight, const bool inOverflowControl, const avl::Image& outTile, const avl::Box& diagTilePosition )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inImage | const Image& | Image to be enumerated. | ||
![]() |
inTileWidth | const int | 1 - ![]() |
1 | Demanded tile width. |
![]() |
inTileHeight | Optional<int> | 1 - ![]() |
Demanded tile height; equals inTileWidth when set to Auto. | |
![]() |
inOverflowControl | const bool | Allow overflow. | ||
![]() |
outTile | const Image& | |||
![]() |
diagTilePosition | const Box& | Box indicating cut out tiles location and dimensions. |
Description
Cuts out a tile from inImage and serves them one by one. Tile dimensions cannot be changed during image traversal.
Examples
![]() |
![]() |
EnumerateImageTiles performed on the sample image with inOverflowControl = true.
See Also
- CutImageIntoTiles – Generates array of image tiles, which are cut from inImage.
- JoinImageTiles – Joins previously cut tiles into single image.
- JoinImageTiles – Joins previously cut tiles into single image.