Data format of image data file.

It is intended to provide information for those want to read tiwb image data by their own software.
Image file consists of train of data segments. Each data segment consists of a header, data and a footer. Big-endian byte order is used for the most of data items, excluding the "recsize" and "headersize" of "ElOpHeader" structure and the footer, which are always Little-endian.

Header:

The C++-stype strcuct BioImageHeader is the structure of the header. See "dataformat.txt" for detai. The C++-style definitions may be read from bottom to top in the file. Data is aligned to 2-byte boundary ("#pragma options align= mac68k" is used in the MetroWerks CodeWorrior C compiler).

Data:

Time course information is followed by pixel data of images. Time course image consists of an array of SInt32 integer (array size is number of frames). Immediately following image data consists of image frame array (array size is number of frames). Each image frame consists of image channels. In case for alternate filter modes (F1 and F2) or (F1, F2 and ext3) or RGB mode, image channel is two or three. Even with multiple image channels (alternate mode or RGB mode) image frames preceding the alternate frames, i.e., first dark frame, Ext 1-3 frames has a single frame size. Image data byte (8 bit images) or word (16 bit for 12-16 bit cameras, 32 bit for floating point images) is packed from left-top to right-bottom without gaps.

Footer:

Footer consists of a single four byte word (Little-endian) which holds the size of the data packet. This four byte holds the same value as the "recsize" of "ElOpHeader" struct of the Header.