Main Page   Modules   File List  

crop.c File Reference

extracts a rectangular (cuboidal in 3d) area from an image More...


Detailed Description

extracts a rectangular (cuboidal in 3d) area from an image

Usage: crop in.pgm x y [z] w h [d] out.pgm

Description: For a 2d image, extracts the rectangle with upper left corner (x,y), of width w and height h from the image in.pgm . For a 3d image, extracts the cuboid with upper left corner (x,y, z), of width w, height h and depth d from the image in.pgm .

Types supported: byte 2d, long 2d, float 2d, byte 3d, long 3d, float 3d.

Category: convert, geo

Author:
Michel Couprie

Generated on Fri Dec 17 11:59:37 2004 for Pink by doxygen1.2.18