pnmcut

From DavinciWiki
Jump to: navigation, search


Description

Cut a rectangle out of a PBM, PGM, or PPM image (while this was the intended design, it actually functions on any numerical array)

Arguments and Return Values

Arguments: The image and start and size parameters

Return Value: An image cut out of the original

Usage

Syntax: pnmcut(object = VAR, x = INT, y = INT, z = INT, width = INT, height = INT, depth = INT)

object - any numerical array

x - the upper left x pixel

y - the upper left y pixel

z - the upper left z pixel

width - the width of the cut section (x direction)

height - the height of the cut section (y direction)

depth - the depth of the cut section (z direction)

Examples

dv> a
1441x2141x3 array of byte, bip format [9,255,543 bytes]

dv> b=pnmcut(a,300,600,1,200,200,3)
200x200x3 array of byte, bip format [120,000 bytes]

Images

blendpic3.png pnmcut.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 08-26-2006

Personal tools