SampleImage - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


ImageTools

  

SampleImage

  

return a sample image

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SampleImage( n )

Parameters

n

-

an integer specifying a sample image

Description

• 

The SampleImage function returns one of the available canned sample images, specified by integer argument n, which must range from 1 to the number of available images.

• 

Calling SampleImage with 0 as its argument returns the number of available sample images.

• 

Use the Preview or Embed commands to view the returned sample image in the Maple session.

Examples

> 

with⁡ImageTools:

> 

SampleImage⁡0

5

(1)
> 

img≔SampleImage⁡1

img≔1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…1.1.1.1.1.1.1.1.1.1.…⋮⋮⋮⋮⋮⋮⋮⋮⋮⋮⋱slice of 428 × 459 × 3 Array

(2)
> 

Embed⁡img

Compatibility

• 

The ImageTools[SampleImage] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

ImageTools

ImageTools[Create]