First, the header to include to load and save an image from a RAW file is :
To save an image in a RAW file, only the following instruction is needed :
Since a RAW file stores the data without any header, it is necessary to specify its geometry while loading an image from a RAW file. These following instructions allow to load a two dimensional grey-level image from a RAW file :
See Image geometry concepts in IPSDK for more details about image geometry.
In Python, the following command lines show how to write and read an image from a RAW file :