rawtoicp converts a raw file containing a 2D array of integer pixels into a ICP-format file. The size of the raw file must be given as num_rows and num_cols.
The option -bpp specifies the number of bits that each pixel value contains. bits_per_pixel must be between 1 and 32. If bits_per_pixel is <= 8, then each sample is stored in rawfile as the least significant bits in a single byte; otherwise, if bits_per_pixel is <= 16, then each sample is stored in rawfile as the least significant bits of two consecutive bytes (the default); otherwise, if bits_per_pixel is <= 32, then each sample is stored in rawfile as the least significant bits of four consecutive bytes. The option -s indicates that the raw file contains signed values; unsigned is assumed if the -s option is absent. The options -bend and -lend indicate whether the raw file is in big-endian or little-endian format, respectively. If neither is specified, big-endian is assumed.
rawfile must be stored in row-major order.