.CPX File Format
Description of Compix Image File Format
The .CPX format was developed for ease of use in the Visual Basic environment, and is transportable to other languages as well. It begins with 244*193 32-bit IEEE floating-point numbers representing the 244*193 pixels in the image. These numbers are degrees Celsius, uncorrected for Ambient, Emissivity, Lens Factor or Focal Distance. After the thermal data, there is an information block defined by:
Using the following Visual Basic code, the image and it's information block are read from disk.
Note: In some advanced and/or custom versions of Compix thermal evaluation software there may be four extra bytes at the very end of the .cpx file. Those four bytes, if present, specify the width and height of the image as 16-bit integer values. If this alternate format is a possibility, the reader should first read the width and height values by indexing 4 bytes ahead of the end of file. Next the reader should read (width) x (height) 32-bit floating point values for the image, read the information block, and then re-read the height and width. If the width and height read after reading the rest of the file agrees with the first reading, correct reading of the image is confirmed. If they do not agree, the file should be considered a normal .cpx file and re-read accordingly.
Temperature data storage, readout and correction
[This subsection added 10/3/02]
The temperature values saved in .TIF and .CPX files by WinTES are the uncorrected temperature data. The following function converts temperature read from the PC2000 through compix32.dll to the actual temperature of the surface which is the value reported by WinTES.
Focal distance is in inches from the bezel
Emissivity and Lens Factor are in the range [0,1]
"z" and "power" are local variables only
"e" is a local variable for total efficiency
Note: 0.00091283524059 is a correction factor applied to get 10" to be exactly 1.000. The rest of the equation is derived from actual data with a camera, using the curve of best fit as determined by MacCurveFit.