Image - Maple Help

convert/Image

convert to an Image

 Calling Sequence convert(expr, Image)

Parameters

 expr - 2-D or 3-D plot, Array, or Matrix; expression to convert

Description

 • The convert(x, Image) command takes a 2-D or 3-D plot or a Matrix or Array and returns an Image structure corresponding to the input.

Examples

 > $\mathrm{plotimage}≔\mathrm{convert}\left(\mathrm{plot}\left(\mathrm{sin}\right),\mathrm{Image}\right):$
 > $\mathrm{upperbound}\left(\mathrm{plotimage}\right)$
 ${600}{,}{800}{,}{3}$ (1)
 > $M≔\mathrm{LinearAlgebra}:-\mathrm{RandomMatrix}\left(100,\mathrm{generator}=0..1\right)$
 ${M}{≔}\begin{array}{c}\left[\begin{array}{ccccccccccc}{1}& {0}& {1}& {0}& {1}& {1}& {1}& {1}& {1}& {0}& {\dots }\\ {1}& {0}& {1}& {0}& {0}& {0}& {1}& {0}& {1}& {0}& {\dots }\\ {0}& {0}& {1}& {1}& {1}& {0}& {1}& {0}& {1}& {1}& {\dots }\\ {1}& {1}& {1}& {0}& {1}& {1}& {1}& {0}& {1}& {1}& {\dots }\\ {1}& {0}& {0}& {1}& {0}& {1}& {0}& {0}& {0}& {1}& {\dots }\\ {1}& {0}& {0}& {0}& {0}& {1}& {1}& {1}& {1}& {1}& {\dots }\\ {1}& {1}& {0}& {0}& {0}& {0}& {1}& {0}& {1}& {0}& {\dots }\\ {1}& {1}& {1}& {0}& {0}& {1}& {0}& {1}& {0}& {1}& {\dots }\\ {1}& {1}& {0}& {0}& {0}& {0}& {1}& {1}& {1}& {0}& {\dots }\\ {1}& {0}& {0}& {0}& {1}& {1}& {0}& {1}& {0}& {0}& {\dots }\\ {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {}\end{array}\right]\\ \hfill {\text{100 × 100 Matrix}}\end{array}$ (2)
 > $\mathrm{convert}\left(M,\mathrm{Image}\right)$
 $\begin{array}{c}\left[\begin{array}{ccccccccccc}{1.}& {0.}& {1.}& {0.}& {1.}& {1.}& {1.}& {1.}& {1.}& {0.}& {\dots }\\ {1.}& {0.}& {1.}& {0.}& {0.}& {0.}& {1.}& {0.}& {1.}& {0.}& {\dots }\\ {0.}& {0.}& {1.}& {1.}& {1.}& {0.}& {1.}& {0.}& {1.}& {1.}& {\dots }\\ {1.}& {1.}& {1.}& {0.}& {1.}& {1.}& {1.}& {0.}& {1.}& {1.}& {\dots }\\ {1.}& {0.}& {0.}& {1.}& {0.}& {1.}& {0.}& {0.}& {0.}& {1.}& {\dots }\\ {1.}& {0.}& {0.}& {0.}& {0.}& {1.}& {1.}& {1.}& {1.}& {1.}& {\dots }\\ {1.}& {1.}& {0.}& {0.}& {0.}& {0.}& {1.}& {0.}& {1.}& {0.}& {\dots }\\ {1.}& {1.}& {1.}& {0.}& {0.}& {1.}& {0.}& {1.}& {0.}& {1.}& {\dots }\\ {1.}& {1.}& {0.}& {0.}& {0.}& {0.}& {1.}& {1.}& {1.}& {0.}& {\dots }\\ {1.}& {0.}& {0.}& {0.}& {1.}& {1.}& {0.}& {1.}& {0.}& {0.}& {\dots }\\ {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {⋮}& {}\end{array}\right]\\ \hfill {\text{100 × 100 Array}}\end{array}$ (3)

Compatibility

 • The convert/Image command was introduced in Maple 2021.