extract a subimage from an image - Maple Help

Online Help

All Products    Maple    MapleSim


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

ImageTools[GetSubImage] - extract a subimage from an image

Calling Sequence

GetSubImage( img, row, col, ht, wd, opts )

Parameters

img

-

Image

row

-

integer; initial row of the subimage

col

-

integer; initial column of the subimage

ht

-

posint; height of the subimage

wd

-

posint; width of the subimage

opts

-

(optional) equation(s) of the form option = value; specify options for the GetSubImage command

Description

• 

The GetSubImage command returns a subimage of a given image.

• 

The img parameter is the image.

• 

The row and col parameters specify the coordinates of the upper left pixel of the desired subimage of img.

• 

The ht and wd parameters specify the height and width of the subimage.

Examples

withImageTools:

img:=Create500,500,r,c→r+c2500:

imgs:=GetSubImageimg,100,100,200,200:

Embedimg,imgs

See Also

ImageTools, ImageTools[GetLayer], ImageTools[SetSubImage], ImageTools[View]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam