converts from raw format into pgm format and applies a double threshold
Usage: rawthreshold in.raw rs cs ds headersize datatype littleendian thresh1 thresh2 [xdim ydim zdim] out.pgm
Description: Converts from raw format into pgm byte format, and selects only pixels which have values V such that thresh1 <= V <= thresh2
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.
- thresh1, thresh2 (float): threshold values
- 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.
This operator does not load the complete image into memory.
Types supported: float
Category: convert
- Author:
- Michel Couprie