Main Page Modules File List
raw2pgm.c File Reference
converts from raw format into pgm format
More...
Detailed Description
converts from raw format into pgm format
Usage: in.raw rs cs ds headersize nbytespervox littleendian [xdim ydim zdim] out.pgm
Description: Converts from raw format into pgm format.
Parameters:
- in.pgm : source file in raw format
- rs (int): row size (number of voxels in a row)
- cs (int): column size (number of voxels in a column)
- ds (int): number of planes
- headersize (int): size of the header in bytes (information in the header will be ignored)
- nbytespervox (int): number of bytes per voxel (1, 2 or 4)
- littleendian (boolean) 1: littleendian, 0: bigendian. Usual choice is 0.
- xdim (float, optional) : gap (in the real world) between two adjacent voxels in a row.
- ydim (float, optional) : gap (in the real world) between two adjacent voxels in a column.
- zdim (float, optional) : gap (in the real world) between two adjacent planes.
Types supported: byte 3D, short 3D, long 3D
- Warning:
-
Signed integers are not supported.
Category: convert
- Author:
-
Michel Couprie
Generated on Fri Dec 17 11:59:38 2004 for Pink by
1.2.18