Pink 0.9

extractplane.c File Reference

extracts a plane normal to one of the directions x,y,z from a 3D image More...


Detailed Description

extracts a plane normal to one of the directions x,y,z from a 3D image

Usage: extractplane in.pgm n plane out.pgm

Description: The original 3D image is in.pgm. The parameter n is an integer. The parameter plane is set to xy, yx, xz, zx, yz, zy. The order of the letters x, y, z is meaningfull: for example, zy means that each row of the output image will correspond to a z-line of the original image, each column of the output image will correspond to a y-line of the original image. The output image out.pgm contains the nth plane of the given form extracted from in.pgm.

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

Category: geo

Author:
Michel Couprie