TTL_tiler is the basic unit that describes how a tile is subdivided. More...
#include <TTL_tiles.h>
Data Structures | |
| struct | [struct].cache |
| Precomputed information to speed up later reuse. More... | |
Public Member Functions | |
| TTL_tiler (const TTL_shape tensor_shape, const TTL_shape tile_shape, const TTL_overlap overlap, const TTL_augmentation augmentation) | |
| Return a TTL_tiler based on a shape, a tile, and an overlap. | |
| TTL_tiler (const TTL_shape shape, const TTL_shape tile) | |
| int | number_of_tiles () const |
| Return the number of tiles that this tile can produce. | |
| int | valid_tile_id (int tile_id) const |
| Given a tile ID return true or false to indicate if the id is valid. | |
| int | TTL_ceil_of_a_div_b (const int a, const int b) const |
| Return the ceil value of a/b i.e. ceil(a/b). | |
| TTL_dim | tiles_in_width () const |
| TTL_dim | tiles_in_height () const |
| TTL_dim | tiles_in_depth () const |
| TTL_tile | create_tile (TTL_dim x, TTL_dim y, TTL_dim z) const |
| Returns a tile at a position from a tiler and respective coordinates. | |
| TTL_tile | get_tile (const int tile_id) const |
| Return the tile_id'th tile of a tile array in row-major order. | |
| TTL_tile | get_tile_column_major (const int tile_id) const |
| Return the tile_id'th tile of a tile array in column-major order. | |
Data Fields | |
| TTL_shape | space |
| Represents the space to be tiled such as an image. | |
| TTL_shape | tile |
| TTL_overlap | overlap |
| When zeroes represent no overlap. | |
| TTL_augmentation | augmentation |
| The augmentation that the tile produces. | |
| struct | cache |
TTL_tiler is the basic unit that describes how a tile is subdivided.
The TTL_tiler type represents the tiling of a 3D space into 3D tiles with operational overlap
Definition at line 121 of file TTL_cpp/TTL_tiles.h.
|
inline |
Return a TTL_tiler based on a shape, a tile, and an overlap.
| tensor_shape | The shape to be tiled |
| tile_shape | The description of the tile that the shape will be sub-divided to. |
| overlap | The overlap between tiles |
| augmentation | The augomentation to apply at the edges durring import. |
Complete description of what not how here.
Definition at line 134 of file TTL_cpp/TTL_tiles.h.
Definition at line 154 of file TTL_cpp/TTL_tiles.h.
Returns a tile at a position from a tiler and respective coordinates.
| x | The x position of the tile being created |
| y | The y position of the tile being created |
| z | The z position of the tile being created |
| tiler | The tiler from which the tiler can be calculated. |
Definition at line 233 of file TTL_cpp/TTL_tiles.h.
|
inline |
Return the tile_id'th tile of a tile array in row-major order.
Return the tile_id'th tile, starting from tile_id=0, in row-major order. Returns an invalid tile if tile_id is not valid (not from [0, number_of_tiles))
| tile_id | The tile id to return - if out of bounds then an invalid tile is returned |
| tiler | The containing with the shape and tiling information |
Definition at line 267 of file TTL_cpp/TTL_tiles.h.
|
inline |
Return the tile_id'th tile of a tile array in column-major order.
Return the tile_id'th tile, starting from tile_id=0, in column-major order. Returns an invalid tile if tile_id is not valid (not from [0, number_of_tiles))
| tile_id | The tile id to return - if out of bounds then an invalid tile is returned |
| tiler | The tiler containing the shape and tiling information |
Definition at line 296 of file TTL_cpp/TTL_tiles.h.
|
inline |
Return the number of tiles that this tile can produce.
Definition at line 179 of file TTL_cpp/TTL_tiles.h.
|
inline |
Definition at line 219 of file TTL_cpp/TTL_tiles.h.
|
inline |
Definition at line 215 of file TTL_cpp/TTL_tiles.h.
|
inline |
Definition at line 211 of file TTL_cpp/TTL_tiles.h.
|
inline |
Return the ceil value of a/b i.e. ceil(a/b).
Implementation of ceil(a/b) without requiring a library or floating-point.
Internal TTL function not part of the API.
| a | The dividend to use in the calculation |
| b | The divisor to use in the calculation |
Definition at line 207 of file TTL_cpp/TTL_tiles.h.
|
inline |
Given a tile ID return true or false to indicate if the id is valid.
| tile_id | The ID to validate. |
Definition at line 190 of file TTL_cpp/TTL_tiles.h.
| TTL_augmentation TTL_tiler::augmentation |
The augmentation that the tile produces.
Definition at line 161 of file TTL_cpp/TTL_tiles.h.
| struct TTL_tiler::[struct].cache TTL_tiler::cache |
| TTL_overlap TTL_tiler::overlap |
When zeroes represent no overlap.
Definition at line 160 of file TTL_cpp/TTL_tiles.h.
| TTL_shape TTL_tiler::space |
Represents the space to be tiled such as an image.
Definition at line 157 of file TTL_cpp/TTL_tiles.h.
| TTL_shape TTL_tiler::tile |
All tiles will be of this shape, except for clamping at the end of the space
Definition at line 158 of file TTL_cpp/TTL_tiles.h.