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