home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
io
/
raw2wit.
/
raw2wit.bin
Wrap
Text File
|
1995-12-09
|
981b
|
20 lines
OPERATOR
raw2wit --- converts a raw data file to a WiT image
DESCRIPTION
The raw2wit operator reads in a raw data file and outputs a WiT image.
Either color, greyscale, floating point, or complex data files may be read.
In the case of color images, the raw data is represented by three files.
Each file contains the raw data for one of the three color channels; red,
green, or blue. Each file is named by the filename given in the property
window suffixed with either the letter r , g , or b . For example, if the
filename is given as xx then the files expected are xx.r , xx.g , and xx.b .
Each raw data file is organized in row/column order given the width and height
parameters. Floating point images are single precision and complex images are
organized as real, complex single precision float pairs. The offset parameter
is used to skip the given number of bytes into the file prior to extracting
the data.