tile
duplicates an Image
object one or more
times along each of its two axes.
Arguments
- image
An
Image
object.- 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
Image
object is created and the results are stored inside (the default).- An
Image
object: the results are stored in another existing
Image
object. This is fast and will not replace the content ofimage
but will replace that oftarget
. Note that iftarget
does 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