Transpose - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

ImageTools

 Transpose
 transpose an image

 Calling Sequence Transpose( img, opts )

Parameters

 img - Image; input image opts - (optional) equation(s) of the form option = value; specify options for the Transpose command

Options

 • output = Image

Specifies a data structure into which the output is written. The size, number of layers, and order must match that of the transformed image. The default is NULL.

Description

 • The Transpose command computes the transpose of an image.
 • The img parameter is the image and must be of type Image.
 • The start row and column indices are preserved. If the input image starting row and column indices are m and n, respectively, then the output image starting row and column indices are m and n, respectively.

Examples

 > $\mathrm{with}\left(\mathrm{ImageTools}\right):$
 > $\mathrm{img}≔\mathrm{Create}\left(100,200,\left(r,c\right)→0.5+\mathrm{evalf}\left({ⅇ}^{-\frac{c}{50}}\cdot 0.5\mathrm{sin}\left(\frac{r}{20}\right)\right)\right):$
 > $\mathrm{img_t}≔\mathrm{Transpose}\left(\mathrm{img}\right):$
 > $\mathrm{Embed}\left(\left[\mathrm{img},\mathrm{img_t}\right]\right)$

Demonstrate that the starting row and column indices are fixed.

 > $\mathrm{rtable_redim}\left(\mathrm{img},20,10\right):$
 > $\mathrm{img_h}≔\mathrm{Transpose}\left(\mathrm{img}\right)$

 See Also