ImageTools - Maple Programming Help

Home : Support : Online Help : Graphics : Image Processing : ImageTools Package : ImageTools/Transpose

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)$
 ${\mathrm{img_h}}{≔}\left[\begin{array}{c}{\mathrm{20..219 x 10..109}}{\mathrm{Array}}\\ {\mathrm{Data Type:}}{{\mathrm{float}}}_{{8}}\\ {\mathrm{Storage:}}{\mathrm{rectangular}}\\ {\mathrm{Order:}}{\mathrm{C_order}}\end{array}\right]$ (5.1)
 >