converts from raw format into pgm format
Usage: raw2pgm in.raw rs cs ds headersize datatype littleendian [xdim ydim zdim] out.pgm
Description: Converts from raw format into pgm format.
Parameters:
- in.pgm : source file in raw format
- rs (int32_t): row size (number of voxels in a row)
- cs (int32_t): column size (number of voxels in a column)
- ds (int32_t): number of planes
- headersize (int32_t): size of the header in bytes (information in the header will be ignored)
- datatype (int32_t): (1 for byte, 2 for short int, 4 for long int, 5 for float)
- littleendian (int32_t) 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 2D-3D, int16_t 2D-3D, int32_t 2D-3D, float 2D-3D
- Warning:
- Signed integers are not supported.
Category: convert
- Author:
- Michel Couprie