Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Tiling » CutImageIntoTiles
CutImageIntoTiles
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Generates an array of small images by cutting the input image.
Syntax
C++
C#
void avl::CutImageIntoTiles ( const avl::Image& inImage, const int inTileWidth, atl::Optional<int> inTileHeight, atl::Optional<int> inHorizontalStep, atl::Optional<int> inVerticalStep, const avl::OverflowControl::Type inOverflowControl, atl::Array<avl::Image>& outImageTiles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | const Image& | Image to be cut into tiles | |||
inTileWidth | const int | 1 - | 1 | 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 | Define what to do when overflowing tiles are present. | |||
outImageTiles | Array<Image>& | Resulting image tiles |
Description
Generates an array of image tiles, which are cut from inImage.
Examples
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
See Also
- JoinImageTiles – Joins previously cut tiles into single image.