Pink 0.9

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, int32_t 2d, float 2d, byte 3d, int32_t 3d, float 3d.

Category: convert, geo ,

Author:
Michel Couprie