tile duplicates an Image object one or more
times along each of its two axes.
Arguments
- image
An
Imageobject.- ny
A non-zero, positive integer specifying how many times the image is repeated along the vertical axis.
- nx
A non-zero, positive integer specifying how many times the image is repeated along the horizontal axis.
- target
The location where the results should be stored. It can take 2 values:
- "new":
a new
Imageobject is created and the results are stored inside (the default).- An
Imageobject: the results are stored in another existing
Imageobject. This is fast and will not replace the content ofimagebut will replace that oftarget. Note that iftargetdoes not the appropriate dimensions, number of channels, or bitdepth, it will be coerced automatically into the appropriate format.
Value
If target="new", the function returns an Image
object. If target is an Image object, the function
returns nothing and modifies that Image object in place.
Author
Simon Garnier, garnier@njit.edu