7
APPENDIX
7.4.4 Image file with spectrum data
Spectrum (SPS) data can be recorded together with image data. The structure is
illustrated below.
■
Structure of Image file with spectrum data
0x0000
Image Data Size
SPM Image Data
SPS Spectrum Data (1)
Image Data Size + Spectrum Data Size
:
:
Image Data Size + Spectrum Data Size × (N-1)
EOF
SPS Spectrum Data (N)
The structure of the image file with spectrum data is rather simple, spectrum data files
being added to the end of an image file. The file format of the image and spectrum data
is the same as the one discussed earlier. The number of added spectrum data files is
recorded in the image header file (short type variable at the address 0x0AD6).
■
Size of image file with s
pectrum
data
File Size = SPM Image Data Size + N
×
SPS Spectrum Data Size
If, for instance, SPM image data = 512
×
512 pixels (normal measurement image) and
SPS spectrum data with 2048 measurement points = 2, the overall file size is:
SPM Image Data (531 412 bytes) + 2
×
SPS Spectrum Data (22 474 bytes)
= 576 360 bytes
TMPM5200-2
7-51