.ds f. viff.sec
.J2 1 "VIFF FILE FORMAT"
.K2 1 "VIFF" "Khoros Visualization/Image File Format" "John Rasure, Scott Wilson, Tom Sauer"
.K0 "VIFF"
.NH 1 "VISUALIZATION/IMAGE FILE FORMAT (VIFF)"
.XS
\s12\*(SN  VISUALIZATION/IMAGE FILE FORMAT (VIFF)\s0
.XE
.sp 2
.PP
The Khoros Visualization/Image File format and internal data structure
format (the \fIxvimage structure\fP - see \f(CWKHOROS_HOME/include/viff.h\fP) 
was designed to facilitate
the interchange of data, not only between data processing
functions within Khoros, but also between researchers that
want to exchange data and information.  VIFF was designed to be
comprehensive; image processing is an extremely diverse field
with different applications requiring different information
about an image.  The VIFF header includes information
necessary for an application program to properly
interpret the data and perform basic error checking.
The VIFF data structure has been applied to both 1D and 2D data processing
applications and 3D visualization.  The VIFF format was also designed to be
extensible; since new applications and new methods of processing
image data are sure to be developed in the future, the file format can be 
extended by adding new fields.  There is currently plenty of
reserve space in the 1024 byte header, or the spare fields can be used.
.sp 2
.NH 2 "VIFF FILE ORGANIZATION"
.XS
      \*(SN  VIFF FILE ORGANIZATION
.XE
.sp
.PP
The Khoros Image File Format is organized as 1024 bytes 
of header followed by map(s), location data and then image data.
The header also contains information identifying the header 
format used.  
This file format (while on disk) or data structure (struct *xvimage, while in 
memory) has evolved from originally supporting only \fIimages\fP
to supporting multi-dimensional data.  The data may be an
image in the normal sense, or it may be sets of vectors.  The
difference is indicated by carefully examining the values of
the various fields.  Information on an existing file can be obtained by
using \fBvfileinfo\fP.
.PP
The fields can be grouped into four categories:
.IP \(bx
administration - file management information,
.IP \(bx
data storage - describes how the data is stored but not how
it is to be interpreted,
.IP \(bx
location data - describes the spatial location of the data (this is optional),
.IP \(bx
data mapping - describes how the stored data should be mapped or
interpreted (no mapping is also valid),
.IP \(bx
color space - in the case of images, indicates what coordinate
space and model is being used.
.LP
Please refer to the table in section C.4 and the examples that follow 
for specific information about all fields in the header.
.sp 2
.NH 2 "FILE FORMAT TERMINOLOGY"
.XS
      \*(SN  FILE FORMAT TERMINOLOGY
.XE
.sp 2
.NH 3 "Image & Imagedata"
.XS
              \*(SN  Image & Imagedata
.XE
.sp
.PP
There are several working terms that must be defined
for the context of the VIFF file format discussion.  An \fIimage\fP 
is a two-dimensional, multiband array of data with either implied or 
explicit data locations. Note that while the pointer to the image data
(\fIimagedata\fP) is a single dimensional array, \fIconceptually,\fP
the image should be thought of as two dimensional.  It is important
to remember that the VIFF image is oriented so that (0,0) is at the 
upper left hand corner of the image. The column index, X, proceeds across
the image to the right;  the row index, Y, proceeds from the top of the
image to the bottom.
.sp 2
.NH 3 "Pixels, Bands & Vectors"
.XS
              \*(SN  Pixels, Bands & Vectors
.XE
.sp
.PP
At each location, implied or explicit, there is a \fIpixel\fP that may
have one or more values. If there is more than one value at a pixel location, 
for example in an RGB image, these data values are separated into \fIbands\fP.  
This means that an image can have one or more bands; these bands are stored 
sequentially. For instance, in an RGB image, the Red band is followed by the 
Green band, which is followed by Blue band.  Taken as a group, the three pixel
values describe a single color value.  
.PP
For multidimensional data, the concept of a \fIvector\fP may be more 
appropriate.  Vectors are stored exactly like images, except that the 
number of bands is interpreted to mean the \fIvector dimension\fP.  Vectors 
can have either implied or explicit location data, just like the pixels of 
an image.
.sp 2
.NH 3 "Implicit VS. Explicit Locations"
.XS
              \*(SN  Implicit VS. Explicit Locations
.XE
.PP
When we refer to the \fIimplied location\fP of a pixel, we refer to the
fact that imagedata[x * row_size + y] = pixel intensity value, where row_size
is the width of the image (ie, number of columns);  here, x is the horizontal
index of the pixel, and y is the vertical index of the pixel;  because the 
x and y values in this image are implied, we call this type of image 
\fIimplicit\fP.  When an image is implicit, there is no need for location data,
as this would be redundant.  A one dimensional image with \fIimplied 
locations\fP data can be represented by setting either the column size or the
row size to one (1).
.PP
A VIFF image can have \fIexplicit location\fP data, where each pixel can have
an N dimensional location in space.  This concept can be explained as the 
imagedata value being an attribute at some location in N-dimensional space. 
To specify an attribute in two dimensional space, for example, we explicitly 
store the values of x and y, as opposed to allowing their values to be implied. 
To access the x value, we look up location[i * row_size + j];  
to access the y value, we would up location[(i * row_size + j) + row_size * 
col_size].  Here, i is the horizontal index of the image and location data, 
j is the vertical index of the image and location data;  row_size is again the 
width of the image (ie, number of columns) and col_size is the height of the
image (ie, number of rows). As in the \fIimplicit\fP image, the 
imagedata value is 
located at imagedata[i * row_size + j].  For an image, the location dimension 
would be two.  A typical use of this interpretation is digital 
elevation data, where the image consists of elevation values; the two 
dimensional location data provides the X and Y spatial coordinates.
.PP
The \fIexplicit\fP N dimensional location information is completely independent of the vector dimension or the number of bands.
For multiband data with explicit locations, the concept can be understood
as the multiband imagedata values being a set of attributes at some location
in N-dimensional space.  
.sp 2
.NH 3 "An Aside on One Dimensional Data"
.XS
              \*(SN  An Aside on One Dimensional Data
.XE
.PP
Given the above description, it is unclear how best to represent sets of
1D data.  There are actually two interpretations that make sense and
are supported in the digital signal processing library (dspl).   
A single one dimensional
implicitly located data set can be stored as a single band with the
product of row size and column size giving the number of elements. 
Alternatively, it may be represented as a
single pixel with the number of bands giving the number of elements (row
size=col size=1 in this case).  A group of 1D data sets 
can then be stored as a set of bands, where the band number can indicate
either the length of the data set or the number of data sets.  Similarly,
the row_size times the col_size can indicate the length of the data set or
the number of data sets.  These two interpretations lead to the idea
of processing \fIdown vectors\fP or processing \fIacross bands\fP.
.PP
A multiband image may have several spatial organization interpretations 
while it is being processed in Khoros.  A multiband image may first be
processed down 1D vectors and later may be processed as a multiband 2D image.
.sp 2
.NH 3 "Image Maps, Map Types, Map Enable and Map Schemes"
.XS
              \*(SN  Image Maps, Map Types, Map Enable and Map Schemes
.XE
.PP
Any image may contain \fImaps\fP.  A map provides additional information 
associated with the imagedata.  Most often, the map field is used to provide
color information, but is not limited to the storage of color information only. 
The size of a map is defined by \fImap_row_size\fP (the number of columns in
the map) and \fImap_col_size\fP (the number of rows in the map).
Any pixel value found in the imagedata serves as an index into one of the 
map rows.  The number of columns in that map row determines the number of 
pieces of information that are described by the map, and accessed via the
pixel value.  For example, when the map is used to store RGB colors, a pixel
value of 5 found in the imagedata will index row 5 of the map.  At row 5,
three values will be found: one each for the red, green, and blue 
color components of pixel value 5.
.PP
There are two different \fImap types\fP that are set with the \fImap_enable\fP
field.  The first is \fIoptional\fP, and the second is \fIforced\fP.  
If the map_enable field is set to optional, this indicates that the imagedata 
is valid by itself, or is valid after indexing into the map.
.PP
If the map_enable field is set to force, the image data is NOT valid until
it it indexed into the map.  When the map_enable field is set to forced,
this implies that the imagedata itself is not meaningful;  it serves only as
an index into the map, where the actual information is stored.
.PP
The \fImap scheme\fP defines how the maps are to be used with the
image(s).  If the \fImap scheme\fP is one-per-band, then each band in a 
multiband image will have its own map (images with only one band should always
have a map scheme of one-per-band.  If, on the other hand, the \fImap scheme\fP
is shared, then all data bands will share a single map.  If the \fImap scheme\fP
is cycled, then a single band image uses multiple maps.  This could be used in
an animation sequence of a single scene;  for example, it would be appropriate
for the animation of a sunset sequence of different colors in a single band
of an image.
.sp 2
.NH 2 "VIFF HEADER POINTERS"
.XS
      \*(SN  VIFF HEADER POINTERS
.XE
.sp
.PP
When the data is in memory, pointers that are part of the xvimage
structure are used to address the data.  The \fIvutils\fP library 
provides basic utilities to read and initialize the pointers. A brief
description of each of the pointers in the VIFF format is provided below:
.IP "char *imagedata "
Points to a sequence of images; an image is
made up of bands, and the bands are in a sequence.  Alternatively,
imagedata can point to vectors, where the vector dimension is
the number of bands and the vector elements are across the bands.
.IP "char *maps "
Points to a sequence of 2-dimensional maps; a map 
is organized as stacked columns.  A imagedata data value 
indexes into a map row.
.IP "float *location "
Points to bands of coordinate values. For example, if you are using
two dimensional explicit locations, then there would be a band
of x's followed by a band of y's.
The number of locations or the number of pixels in a band is always
the product of row size and column size.  The 1D interpretation mentioned
above does not require that either row size or col size be set to one.  The
convention is that the length of a 1D signal is the product of the two.
.PP
To convert other types of image files into VIFF format for use in Khoros, 
use one of the several file format conversion routines (see the section on 
File Formats in Chapter 8 of the Khoros Programmer's Manual, or the man 
pages on file_formats).
.bp
.NH 2 "VIFF HEADER FIELDS"
.XS
      \*(SN  VIFF HEADER FIELDS
.XE
.sp 2
.nr PS 10
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char 
identifier; 
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
A one byte
magic number that identifies a VIFF file
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
XV_FILE_MAGIC_NUM
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char 
file_type; 
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
A one byte code indicating Khoros file type (currently
only VIFF).
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
XV_FILE_TYPE_XVIFF
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 48
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char 
release; 
.fi
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 49
.br
.di h+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
A one byte code indicating the specific release of the
viff.h file (currently 0); this does not have to agree with
the Khoros system release number.
.ad
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
.am 50
.br
.di i+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
XV_IMAGE_REL_NUM
.ad
.br
.ps
.vs
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 48
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char 
version; 
.fi
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 49
.br
.di k+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
A one byte code indicating the specific version of the
viff.h file (currently 3);  this does not have to agree with
the Khoros system version number.
For example, version 1 release 0 is referred to as 
viff 1.0.
.ad
.br
.di
.nr k| \n(dn
.nr k- \n(dl
..
.ec \
.eo
.am 50
.br
.di l+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
XV_IMAGE_VER_NUM
.ad
.br
.ps
.vs
.br
.di
.nr l| \n(dn
.nr l- \n(dl
..
.ec \
.eo
.am 48
.br
.di m+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char 
comment[512]; 
.fi
.br
.di
.nr m| \n(dn
.nr m- \n(dl
..
.ec \
.eo
.am 49
.br
.di n+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
A 512 byte space available for any use, but currently is
used in Khoros as a comment field to document the VIFF data file.
.ad
.br
.di
.nr n| \n(dn
.nr n- \n(dl
..
.ec \
.eo
.am 50
.br
.di o+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr o| \n(dn
.nr o- \n(dl
..
.ec \
.eo
.am 48
.br
.di p+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char 
machine_dep; 
.fi
.br
.di
.nr p| \n(dn
.nr p- \n(dl
..
.ec \
.eo
.am 49
.br
.di q+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
A one byte code indicating how the particular architecture
that the image was last processed on treats data.  Currently
supported are DEC order, IEEE order and NS order.  Supported
machines include the VAX, SUN, SONY News, Silicon Graphics, 
Motorola, Encore, Sequent, MIPS, DEC, IBM, Apollo, and NeXT.
.ad
.br
.di
.nr q| \n(dn
.nr q- \n(dl
..
.ec \
.eo
.am 50
.br
.di r+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_DEP_IEEEORDER
VFF_DEP_DECORDER
VFF_DEP_NSORDER
VFF_DEP_BIGENDIAN
VFF_DEP_LITENDIAN
.ad
.br
.ps
.vs
.br
.di
.nr r| \n(dn
.nr r- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(g-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(j-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(m-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(p-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(h-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(k-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(n-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(q-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(i-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(l-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(o-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(r-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 20v+(7u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(g|u>\n(32u .nr 32 \n(g|u
.if \n(h|u>\n(32u .nr 32 \n(h|u
.if \n(i|u>\n(32u .nr 32 \n(i|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(g|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(g|>\n(tH .nr tH \n(g|
.g+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(h|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(h|>\n(tH .nr tH \n(h|
.h+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(i|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(i|>\n(tH .nr tH \n(i|
.i+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(j|u>\n(32u .nr 32 \n(j|u
.if \n(k|u>\n(32u .nr 32 \n(k|u
.if \n(l|u>\n(32u .nr 32 \n(l|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(j|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(j|>\n(tH .nr tH \n(j|
.j+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(k|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(k|>\n(tH .nr tH \n(k|
.k+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(l|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(l|>\n(tH .nr tH \n(l|
.l+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(m|u>\n(32u .nr 32 \n(m|u
.if \n(n|u>\n(32u .nr 32 \n(n|u
.if \n(o|u>\n(32u .nr 32 \n(o|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(m|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(m|>\n(tH .nr tH \n(m|
.m+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(n|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(n|>\n(tH .nr tH \n(n|
.n+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(o|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(o|>\n(tH .nr tH \n(o|
.o+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(p|u>\n(32u .nr 32 \n(p|u
.if \n(q|u>\n(32u .nr 32 \n(q|u
.if \n(r|u>\n(32u .nr 32 \n(r|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(p|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(p|>\n(tH .nr tH \n(p|
.p+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(q|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(q|>\n(tH .nr tH \n(q|
.q+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(r|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(r|>\n(tH .nr tH \n(r|
.r+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
.rm l+
.rm m+
.rm n+
.rm o+
.rm p+
.rm q+
.rm r+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-132
.nr PS 11
.bp
.nr PS 10
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
row_size, 
col_size;
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
These two unsigned long fields indicate data size,
specifically, the number of data items in a band.
row_size indicates the length of a row (the number of columns,
or the image width) in pixels.  col_size indicates the 
length of a column (the number of rows, or the image height) 
in pixels.  Images with row and column sizes of zero are 
sometimes valid, and indicate that only the map information 
is important.  The product of the two values is the total number
of data items present.  
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
subrow_size; 
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field specifies the length of any subrows
in the image.  This is useful when one wants pixel vectors 
to represent 2D objects (images). The size of each pixel "image"
would be subrow_size (columns) by num_data_bands/subrow_size (rows).
This field may be ignored except by routines that need the 2D
interpretation. 
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 48
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
startx,
starty; 
.fi
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 49
.br
.di h+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
These two long fields indicate the location of a
subimage in a parent image.  The image is a sub image
if startx and starty have values greater than zero.
startx and starty locate the upper left hand corner
of where the image was extracted.
This applies to 2D data that has implicit locations.
.ad
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
.am 50
.br
.di i+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_NOTSUB
.ad
.br
.ps
.vs
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 48
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
float
pixsizx,
pixsizy;
.fi
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 49
.br
.di k+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
These two floats specify the actual pixel size in meters
at the time of digitization.  This information is needed
to do true measurements and calculate true frequencies.
The ratio of these fields will give you the aspect ratio
of the digitized pixel.  Most CCD camera's are not one-to-one.
These values may not have a meaning if the data is 
VFF_LOC_EXPLICIT.
.ad
.br
.di
.nr k| \n(dn
.nr k- \n(dl
..
.ec \
.eo
.am 50
.br
.di l+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr l| \n(dn
.nr l- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(g-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(j-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(h-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(k-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(i-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(l-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(5u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(g|u>\n(32u .nr 32 \n(g|u
.if \n(h|u>\n(32u .nr 32 \n(h|u
.if \n(i|u>\n(32u .nr 32 \n(i|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(g|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(g|>\n(tH .nr tH \n(g|
.g+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(h|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(h|>\n(tH .nr tH \n(h|
.h+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(i|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(i|>\n(tH .nr tH \n(i|
.i+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(j|u>\n(32u .nr 32 \n(j|u
.if \n(k|u>\n(32u .nr 32 \n(k|u
.if \n(l|u>\n(32u .nr 32 \n(l|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(j|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(j|>\n(tH .nr tH \n(j|
.j+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(k|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(k|>\n(tH .nr tH \n(k|
.k+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(l|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(l|>\n(tH .nr tH \n(l|
.l+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
.rm l+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-108
.nr PS 11
.bp
.nr PS 10
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
location_type;
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field indicates 
whether the image data has implicit 
or explicit locations.
.sp
If the locations are implicit, the field
location_dim must be set to zero (0), and 
the location data will be empty.
.sp
If the locations are explicit, the field
location_dim indicates the dimensionality of the
space (1D, 2D and 3D will be most common).
The explicit location data is pointed to by
location, and is stored as bands of coordinates.  
For example, if (location_dim = 2), implying 2D locations, the
location data would be stored; x1, x2, . . . , xn;
y1, y2, . . . , yn.  
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_LOC_IMPLICIT
VFF_LOC_EXPLICIT
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
location_dim;
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long indicates the dimensionality of the
location space of data.  Zero-, one-, and two- 
dimensionalities  will be most common.  If the location_type
is implicit, this field must be set to zero (0). If the 
location_type is explicit, this field is set to the 
dimensionality correctly describing the data.  Remember that
3-dimensional image data is represented with location_dim = 2 (x & y);
the third dimension (pixel intensity) is stored in the imagedata.  
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 48
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
num_of_images;
.fi
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 49
.br
.di h+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long indicates the 
the number of images (not bands) pointed to by *imagedata.
.ad
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
.am 50
.br
.di i+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 48
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
num_data_bands;
.fi
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 49
.br
.di k+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long indicates the number of
bands per image or the dimensionality of vectors.
In some cases, it may be convenient to think of an
image pixel as a vector (when there is more than one
band).
.ad
.br
.di
.nr k| \n(dn
.nr k- \n(dl
..
.ec \
.eo
.am 50
.br
.di l+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr l| \n(dn
.nr l- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(g-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(j-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(h-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(k-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(i-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(l-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(5u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(g|u>\n(32u .nr 32 \n(g|u
.if \n(h|u>\n(32u .nr 32 \n(h|u
.if \n(i|u>\n(32u .nr 32 \n(i|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(g|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(g|>\n(tH .nr tH \n(g|
.g+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(h|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(h|>\n(tH .nr tH \n(h|
.h+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(i|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(i|>\n(tH .nr tH \n(i|
.i+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(j|u>\n(32u .nr 32 \n(j|u
.if \n(k|u>\n(32u .nr 32 \n(k|u
.if \n(l|u>\n(32u .nr 32 \n(l|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(j|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(j|>\n(tH .nr tH \n(j|
.j+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(k|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(k|>\n(tH .nr tH \n(k|
.k+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(l|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(l|>\n(tH .nr tH \n(l|
.l+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
.rm l+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-109
.nr PS 11
.bp
.nr PS 10
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
data_storage_type;
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field indicates the data storage type
of the pixel or vector data.  Currently, bit, byte, 
short, integer, float, float complex, double, and double 
complex data types are supported.  The BIT storage type 
stores the bits in packed unsigned chars and pads to
a byte;  the order is Least Significant Bit (LSB) first.  
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_TYP_BIT
.br
VFF_TYP_1_BYTE
.br
VFF_TYP_2_BYTE
.br
VFF_TYP_4_BYTE
.br
VFF_TYP_FLOAT
.br
VFF_TYP_COMPLEX
.br
VFF_TYP_DOUBLE
.br
VFF_TYP_DCOMPLEX
.br
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
data_encode_scheme;
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field  
contains the information that specifies the encoding
or compression method used for storage of the data.
Only the raw and compress encoding schemes
are supported in Khoros 1.0.
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_DES_RAW
.br
VFF_DES_COMPRESS
.br
VFF_DES_RLE
.br
VFF_DES_TRANSFORM
.br
VFF_DES_CCITT
.br
VFF_DES_ADPCM
.br
VFF_DES_GENERIC
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 48
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
map_scheme;
.fi
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 49
.br
.di h+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field specifies the type of mapping that should
occur.  The map is an array, where the
data pointed to by *imagedata is used as an 
index into rows of the array.
.br
.sp
ONEPERBAND indicates that each data band has a map.  CYCLE is
for when a single band is displayed by cycling through maps.
SHARED is for when there is only one map for all bands to share.
The GROUP mapping scheme is for future Khoros development, and
should not be used as of Khoros 1.0.
.ad
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
.am 50
.br
.di i+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_MS_NONE
.br
VFF_MS_ONEPERBAND
.br
VFF_MS_CYCLE
.br
VFF_MS_SHARED
.br
VFF_MS_GROUP
.ad
.br
.ps
.vs
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 48
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
map_storage_type;
.fi
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 49
.br
.di k+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field indicates the type
of data in the map.  Data in the map may be of type
char, short, integer, float, or complex.  
This is also the resulting data type after a mapping has been done.
.ad
.br
.di
.nr k| \n(dn
.nr k- \n(dl
..
.ec \
.eo
.am 50
.br
.di l+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_MAPTYP_NONE
VFF_MAPTYP_1_BYTE
VFF_MAPTYP_2_BYTE
VFF_MAPTYP_4_BYTE
VFF_MAPTYP_FLOAT
VFF_MAPTYP_COMPLEX
.ad
.br
.ps
.vs
.br
.di
.nr l| \n(dn
.nr l- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(g-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(j-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(h-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(k-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(i-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(l-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(5u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(g|u>\n(32u .nr 32 \n(g|u
.if \n(h|u>\n(32u .nr 32 \n(h|u
.if \n(i|u>\n(32u .nr 32 \n(i|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(g|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(g|>\n(tH .nr tH \n(g|
.g+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(h|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(h|>\n(tH .nr tH \n(h|
.h+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(i|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(i|>\n(tH .nr tH \n(i|
.i+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(j|u>\n(32u .nr 32 \n(j|u
.if \n(k|u>\n(32u .nr 32 \n(k|u
.if \n(l|u>\n(32u .nr 32 \n(l|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(j|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(j|>\n(tH .nr tH \n(j|
.j+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(k|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(k|>\n(tH .nr tH \n(k|
.k+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(l|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(l|>\n(tH .nr tH \n(l|
.l+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
.rm l+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-143
.nr PS 11
.bp
.nr PS 10
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
map_row_size,
map_col_size;
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
These two unsigned long fields indicate the number of
rows in the 2D map and the number of columns in the map.
The maps are stored as a sequence of columns (stacked
columns).
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
map_subrow_size;
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field specifies the number of subrows
in a map.  This is useful when using the output vector from 
the map is a 2D image, rather than just a vector. 
The size of the 2D image would be: map_subrow_size (columns) by
map_row_size/map_subrow_size (rows). This field may be ignored
except by routines that need the 2D interpretation. 
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 48
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
map_enable;
.fi
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 49
.br
.di h+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field specifies if the image data will be
valid regardless of whether or not it has been sent through a map.
In some cases the mapping is optional (VFF_MAP_OPTIONAL),  while in others,
the data must be mapped in order for it to have a valid meaning 
(VFF_MAP_FORCE).  See the previous section on FILE FORMAT TERMINOLOGY for 
a more detailed explanation of the map_enable field.
.ad
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
.am 50
.br
.di i+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_MAP_OPTIONAL
VFF_MAP_FORCE
.ad
.br
.ps
.vs
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 48
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
maps_per_cycle;
.fi
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 49
.br
.di k+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field specifies the number of
maps that would constitute one cycle when the cycled map scheme type
is used. Of course, this field is only valid 
when map_scheme is set to VFF_MS_CYCLE.
.ad
.br
.di
.nr k| \n(dn
.nr k- \n(dl
..
.ec \
.eo
.am 50
.br
.di l+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr l| \n(dn
.nr l- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(g-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(j-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(h-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(k-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(i-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(l-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(5u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(g|u>\n(32u .nr 32 \n(g|u
.if \n(h|u>\n(32u .nr 32 \n(h|u
.if \n(i|u>\n(32u .nr 32 \n(i|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(g|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(g|>\n(tH .nr tH \n(g|
.g+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(h|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(h|>\n(tH .nr tH \n(h|
.h+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(i|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(i|>\n(tH .nr tH \n(i|
.i+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(j|u>\n(32u .nr 32 \n(j|u
.if \n(k|u>\n(32u .nr 32 \n(k|u
.if \n(l|u>\n(32u .nr 32 \n(l|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(j|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(j|>\n(tH .nr tH \n(j|
.j+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(k|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(k|>\n(tH .nr tH \n(k|
.k+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(l|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(l|>\n(tH .nr tH \n(l|
.l+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
.rm l+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-99
.nr PS 11
.bp
.nr PS 10
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
color_space_model;
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This unsigned long field indicates 
the color space or the coordinate system being
used to interpret the image bands.
.sp
.br
The color space model defines use the following convention:
.nf
NTSC: National Television Systems Committee
CIE:  Commission Internationale de L'Eclairage
UCS:  Universal Chromaticity Scale
RGB:  Red Component, Green Component, Blue Component
CMY:  Cyan Component, Magenta Component, Yellow Component
YIQ:  Luminance, I and Q represent chrominance
HSV:  Hue, Saturation & Value
IHS:  Intensity, Hue & Saturation
.fi
.sp
.br
Most color map models only make sense when the map_scheme is set to 
VFF_MS_ONEPERBAND and the map_row_size = 3 and the num_data_bands = 1;
alternatively, the map_scheme may be set to VFF_MS_NONE and the 
map_row_size = 0, and the num_data_bands = 3.  The exceptions to this are:
VFF_CM_NONE indicates that no color space model has been assigned,
VFF_CM_GENERIC indicates that a color space is valid, but is
being defined by the user.
VFF_CM_genericRGB would imply that VFF_MS_ONEPERBAND is set with
map_row_size = 3 and num_data_bands = 1.  genericRGB is an RGB image
but doesn't conform to a standard.
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
VFF_CM_NONE
.br
VFF_CM_ntscRGB
.br
VFF_CM_ntscCMY
.br
VFF_CM_ntscYIQ
.br
VFF_CM_HSV
.br
VFF_CM_HLS
.br
VFF_CM_IHS
.br
VFF_CM_cieRGB
.br
VFF_CM_cieXYZ
.br
VFF_CM_cieUVW
.br
VFF_CM_cieucsUVW
.br
VFF_CM_cieucsSOW
.br
VFF_CM_cieucsLab
.br
VFF_CM_cieucsLuv
.br
VFF_CM_GENERIC
.br
VFF_CM_genericRGB
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
unsigned long
ispare1,
ispare2;
float
fspare1,
fspare2;
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
Spare fields available for user defined fields.  These
fields are not supported except for reading and writing 
correctly with respect to machine dependencies.
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 7v+(3u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-109
.nr PS 11
.bp
.nr PS 10
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.nr 34 \n(.lu
.eo
.am 48
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
reserve
.fi
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 49
.br
.di b+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
Reserve space is allocated so that the
total length of the header is 1024 bytes and
so that more fields can be added.
.ad
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 50
.br
.di c+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 48
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char *maps;
.fi
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 49
.br
.di e+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This is a pointer to the beginning of the map data.  
When it is used, it must be cast to the proper data type.
.ad
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 50
.br
.di f+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 48
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
float *location;
.fi
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 49
.br
.di h+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This is a pointer to the beginning of the location data. 
The dimensionality of the location data is given in the field
location_dim. (location_dim specifies the number of
bands of coordinates.) The number of coordinate values per 
band is row_size*col_size.  
.ad
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
.am 50
.br
.di i+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 48
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/4u
.if \n(.l<\n(48 .ll \n(48u
.in 0
.nf
char *imagedata;
.fi
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 49
.br
.di k+
.35
.ft \n(.f
.ll 3.0in
.if \n(.l<\n(49 .ll \n(49u
.in 0
.na
This is a pointer to the beginning of the image data.  When it
is used in an image processing routine it
must be cast to the proper data type.
.ad
.br
.di
.nr k| \n(dn
.nr k- \n(dl
..
.ec \
.eo
.am 50
.br
.di l+
.35
.ft \n(.f
.nr 30 \n(.v
.ps -4
.vs \n(.s+2
.if \n(30u>\n(.vu .sp \n(30u-\n(.vu
.ll \n(34u*1u/4u
.if \n(.l<\n(50 .ll \n(50u
.in 0
.na
none
.ad
.br
.ps
.vs
.br
.di
.nr l| \n(dn
.nr l- \n(dl
..
.ec \
.35
.nf
.ll \n(34u
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 38 \n(a-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(d-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(g-
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \n(j-
.if \n(48<\n(38 .nr 48 \n(38
.nr 49 0
.nr 38 \wDescription
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 38 \n(b-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(e-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(h-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \n(k-
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 3.0in
.if \n(49<\n(38 .nr 49 \n(38
.nr 50 0
.nr 38 \wDefines\fP
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \n(c-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(f-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(i-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \n(l-
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.35
.nf
.ll \n(34u
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/4
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((2*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((2*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 15v+(5u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Description\h'|\n(42u'Defines\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(a|u>\n(32u .nr 32 \n(a|u
.if \n(b|u>\n(32u .nr 32 \n(b|u
.if \n(c|u>\n(32u .nr 32 \n(c|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(a|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(a|>\n(tH .nr tH \n(a|
.a+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(b|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(b|>\n(tH .nr tH \n(b|
.b+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(c|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(c|>\n(tH .nr tH \n(c|
.c+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(d|u>\n(32u .nr 32 \n(d|u
.if \n(e|u>\n(32u .nr 32 \n(e|u
.if \n(f|u>\n(32u .nr 32 \n(f|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(d|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(d|>\n(tH .nr tH \n(d|
.d+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(e|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(e|>\n(tH .nr tH \n(e|
.e+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(f|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(f|>\n(tH .nr tH \n(f|
.f+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(g|u>\n(32u .nr 32 \n(g|u
.if \n(h|u>\n(32u .nr 32 \n(h|u
.if \n(i|u>\n(32u .nr 32 \n(i|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(g|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(g|>\n(tH .nr tH \n(g|
.g+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(h|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(h|>\n(tH .nr tH \n(h|
.h+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(i|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(i|>\n(tH .nr tH \n(i|
.i+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.if \n(j|u>\n(32u .nr 32 \n(j|u
.if \n(k|u>\n(32u .nr 32 \n(k|u
.if \n(l|u>\n(32u .nr 32 \n(l|u
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.mk ##
.nr 37 \n(40u
.in +\n(37u
.ie \n(j|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(j|>\n(tH .nr tH \n(j|
.j+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(41u
.in +\n(37u
.ie \n(k|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(k|>\n(tH .nr tH \n(k|
.k+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 37 \n(42u
.in +\n(37u
.ie \n(l|>\n(.t .nr #& 1
.el .nr #& 0
.if \n(l|>\n(tH .nr tH \n(l|
.l+
.#%
.in -\n(37u
.mk 38
.if \n(38>\n(32 .nr 32 \n(38
.sp |\n(##u
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
.sp |\n(32u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'\s-4\s0
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
.rm l+
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-87
.bp
.nr PS 11
.NH 2 "EXAMPLES USING THE VIFF FORMAT"
.XS
      \*(SN  EXAMPLES USING THE VIFF FORMAT
.XE
.sp
.PP
The table above succinctly describes each field and its meaning,
but it is helpful to have an example to follow to reinforce
the ideas.  The following narrative describes the use of the
most difficult fields 
(location_type, location_dim. num_data_bands, map_scheme,
map_row_size, map_col_size, map_enable and color_space_model) by 
tracking an image through a typical Khoros image processing application .
.PP
You will probably begin your image processing task by acquiring 
an image using an eight bit digital to analog converter.   When
this image is first brought into the Khoros, it would usually
be declared as:
.nr PS 10
.sp
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_dim
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wdata_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wnum_data_bands
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_scheme
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_row_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_col_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_enable
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wcolor_space_model
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 49 0
.nr 38 \wDefines
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_LOC_IMPLICIT
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_TYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w1
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MS_NONE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAP_OPTIONAL
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_CM_NONE
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 50 0
.nr 38 \wDescription\fP
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wa normal digitized image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit data
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wone band per image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wno mapping
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wdon't need to map
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wno color model
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/8
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((6*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((6*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 11v+(2u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Defines\h'|\n(42u'Description\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_type\h'|\n(41u'VFF_LOC_IMPLICIT\h'|\n(42u'a normal digitized image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_dim\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'data_storage_type\h'|\n(41u'VFF_TYP_1_BYTE\h'|\n(42u'8 bit data
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'num_data_bands\h'|\n(41u'1\h'|\n(42u'one band per image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_scheme\h'|\n(41u'VFF_MS_NONE\h'|\n(42u'no mapping
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_row_size\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_col_size\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_enable\h'|\n(41u'VFF_MAP_OPTIONAL\h'|\n(42u'don't need to map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'color_space_model\h'|\n(41u'VFF_CM_NONE\h'|\n(42u'no color model
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-22
.nr PS 11
.sp
.LP
Next, you probably will process this image with several of the
Khoros programs.  As you do this, you are not likely to
change the above fields but may change the data_storage_type
field from VFF_TYPE_BYTE to some other type.
.PP
As you view the resulting image with editimage, you may
want to \fIenhance\fP the image.  This will change the
fields so that the data is interpreted correctly.  For instance,
if you add "color" to your grey image and save the
result, the header fields should be:
.bp
.nr PS 10
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_dim
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wdata_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wnum_data_bands
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_scheme
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_row_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_col_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_enable
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wcolor_space_model
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 49 0
.nr 38 \wDefines
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_LOC_IMPLICIT
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_TYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w1
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MS_ONEPERBAND
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w3
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w256
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAPTYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAP_OPTIONAL
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_CM_genericRGB
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 50 0
.nr 38 \wDescription\fP
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wa normal digitized image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit data
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wone band per image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wone map
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmap pixels through
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wthree columns
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w256 rows in the
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmap
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit map result
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wdon't have to map
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wpseudo colored
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/8
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((6*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((6*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(2u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Defines\h'|\n(42u'Description\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_type\h'|\n(41u'VFF_LOC_IMPLICIT\h'|\n(42u'a normal digitized image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_dim\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'data_storage_type\h'|\n(41u'VFF_TYP_1_BYTE\h'|\n(42u'8 bit data
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'num_data_bands\h'|\n(41u'1\h'|\n(42u'one band per image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_scheme\h'|\n(41u'VFF_MS_ONEPERBAND\h'|\n(42u'one map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_row_size\h'|\n(41u'3\h'|\n(42u'map pixels through
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'three columns
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_col_size\h'|\n(41u'256\h'|\n(42u'256 rows in the
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_storage_type\h'|\n(41u'VFF_MAPTYP_1_BYTE\h'|\n(42u'8 bit map result
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_enable\h'|\n(41u'VFF_MAP_OPTIONAL\h'|\n(42u'don't have to map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'color_space_model\h'|\n(41u'VFF_CM_genericRGB\h'|\n(42u'pseudo colored
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-25
.nr PS 11
.sp
.LP
The displayed image may be enhanced even further by adding
overlays to the image.  The displayed overlay and image 
are saved by executing getimage (vman getimage).  getimage actually
does a screen dump into a VIFF file.  If the screen
is an eight plane display, then the resulting fields are:
.nr PS 10
.sp
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_dim
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wdata_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wnum_data_bands
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_scheme
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_row_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_col_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_enable
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wcolor_space_model
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 49 0
.nr 38 \wDefines
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_LOC_IMPLICIT
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_TYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w1
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MS_ONEPERBAND
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w3
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w256
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAPTYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAP_FORCE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_CM_genericRGB
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 50 0
.nr 38 \wDescription\fP
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wa normal digitized image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit data
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wone band per image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wone map
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmap pixels through
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wthree columns
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w256 rows in the
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmap
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit map result
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmust be mapped!
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wRGB interpretation
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/8
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((6*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((6*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(2u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Defines\h'|\n(42u'Description\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_type\h'|\n(41u'VFF_LOC_IMPLICIT\h'|\n(42u'a normal digitized image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_dim\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'data_storage_type\h'|\n(41u'VFF_TYP_1_BYTE\h'|\n(42u'8 bit data
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'num_data_bands\h'|\n(41u'1\h'|\n(42u'one band per image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_scheme\h'|\n(41u'VFF_MS_ONEPERBAND\h'|\n(42u'one map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_row_size\h'|\n(41u'3\h'|\n(42u'map pixels through
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'three columns
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_col_size\h'|\n(41u'256\h'|\n(42u'256 rows in the
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_storage_type\h'|\n(41u'VFF_MAPTYP_1_BYTE\h'|\n(42u'8 bit map result
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_enable\h'|\n(41u'VFF_MAP_FORCE\h'|\n(42u'must be mapped!
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'color_space_model\h'|\n(41u'VFF_CM_genericRGB\h'|\n(42u'RGB interpretation
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-25
.nr PS 11
.sp
.LP
This means that the image data only has meaning if it is
mapped through the three color map columns.
.bp
.PP
Let's return to the image as it was when it was first
brought into the Khoros and look at vector data representations.
You may use a Khoros routine that extracts features
of an image at sparse, explicit locations.  This is best
stored as vector data.
.nr PS 10
.sp
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_dim
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wdata_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wnum_data_bands
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_scheme
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_row_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_col_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_enable
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wcolor_space_model
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 49 0
.nr 38 \wDefines
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_LOC_EXPLICIT
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w2
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_TYP_FLOAT
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w7
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MS_NONE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAP_OPTIONAL
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_CM_NONE
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 50 0
.nr 38 \wDescription\fP
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wexplicit locations
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wx and y locations
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wreal numbers
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \weach vector has 
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wseven elements
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wno map
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wdon't have to map
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/8
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((6*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((6*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 13v+(2u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Defines\h'|\n(42u'Description\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_type\h'|\n(41u'VFF_LOC_EXPLICIT\h'|\n(42u'explicit locations
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_dim\h'|\n(41u'2\h'|\n(42u'x and y locations
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'data_storage_type\h'|\n(41u'VFF_TYP_FLOAT\h'|\n(42u'real numbers
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'num_data_bands\h'|\n(41u'7\h'|\n(42u'each vector has 
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'seven elements
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_scheme\h'|\n(41u'VFF_MS_NONE\h'|\n(42u'no map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_row_size\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_col_size\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_storage_type\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_enable\h'|\n(41u'VFF_MAP_OPTIONAL\h'|\n(42u'don't have to map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'color_space_model\h'|\n(41u'VFF_CM_NONE\h'|\n(42u'
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-24
.nr PS 11
.sp
.LP
In the case that you want to have a vector for each pixel
location in the image and also want a color map for
each vector band (elements), 
then the fields should be specified as follows:
.nr PS 10
.sp
.LP
.TS
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if \n(.T .if n .nr #~ 0.6n
.ds #d .d
.if \n(.z .ds #d nl
.fc
.nr 33 \n(.s
.nr 39 \n(.s
.rm 48 49 50
.if \n(.z \{\
.	ch #f
.	wh \n(nlu+\n(.tu-2v #f\}
.eo
.de #f
.ie \n(#& \{ \
.	nr #& 0
.	nr #| 1
.	di #o \}
.el \{ \
.	ch #f
.	nr T. 1
.	if \n(#| .sp
.	T#
.	sp \n(.tu
.	mk #T
.	nr #a \n(#T
.	nr #c \n(#T
.	nr ^a \n(#T
.	nr ^b \n(#T
.	nr ^c \n(#T
.	if \n(#| \{ \
.		in 0
.		#+
.		in
.		rm #+
.		mk 32
.		nr #| 0\}
.	wh \n(nlu+\n(.tu-2v #f \}
..
.de #%
.if \n(.z#o \{ \
.	sp |0u
.	in 0
.	#+
.	in
.	sp |\n(.hu
.	di
.	rn #o #+ \}
..
.ec
.nr 48 0
.nr 38 \w\fBField
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wlocation_dim
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wdata_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wnum_data_bands
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_scheme
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_row_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_col_size
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_storage_type
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wmap_enable
.if \n(48<\n(38 .nr 48 \n(38
.nr 38 \wcolor_space_model
.if \n(48<\n(38 .nr 48 \n(38
.48
.rm 48
.nr 49 0
.nr 38 \wDefines
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_LOC_IMPLICIT
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wdon't care
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_TYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w3
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MS_ONEPERBAND
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w1
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \w256
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAPTYP_1_BYTE
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_MAP_OPTIONAL
.if \n(49<\n(38 .nr 49 \n(38
.nr 38 \wVFF_CM_ntscRGB
.if \n(49<\n(38 .nr 49 \n(38
.49
.rm 49
.nr 50 0
.nr 38 \wDescription\fP
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wa normal digitized image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit data
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wthree bands per image
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wone map per band
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmap vector bands
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wthrough one column
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w256 rows in the
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wmap
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \w8 bit map result
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wdon't have to map
.if \n(50<\n(38 .nr 50 \n(38
.nr 38 \wred, green, blue
.if \n(50<\n(38 .nr 50 \n(38
.50
.rm 50
.nr 38 \w\fBKhoros Image File Format Header Fields\fP-\n(48-\n(49-\n(50
.if \n(38>0 .nr 38 \n(38/2
.if \n(38<0 .nr 38 0
.nr 48 +\n(38
.nr 49 +\n(38
.nr 38 0+\n(48+\n(49+\n(50
.nr 38 \n(.l-\n(38
.nr 38 \n(38/8
.if \n(38<0 .nr 38 0
.nr 47 0
.nr 40 \n(47+((2*\n(38)/2)
.nr 48 +\n(40
.nr 41 \n(48+((6*\n(38)/2)
.nr 49 +\n(41
.nr 42 \n(49+((6*\n(38)/2)
.nr 50 +\n(42
.nr TW \n(50
.nr TW +((2*\n(38)/2)
.ne 14v+(2u*(\n(.vu-\n(.sp))+(2u*(\n(.vu-\n(.sp))
.nr #I \n(.i
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
.fc  
.nr #T 0-1
.nr #a 0-1
.nr #c 0-1
.nr #a 0-1
.eo
.de T#
.nr 38 \n(.s
.ps \n(39p
.nr 35 1m
.ds #d .d
.if \n(.z .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.if \n(T. .vs \n(.vu-\n(.sp
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.if \n(T. .vs
.if \n(#T>=0 .nr #a \n(#T
.if \n(#c<0  .nr #c \n(#T
.if \n(#a>=0 \{\
.	sp -1
.	ie \n(#a=\n(#T \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.	el \{\
\h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(41u+|\n(48u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#c>=0 \{\
.	sp -1
.	ie \n(#c=\n(#T \{\
.		ie \n(3a \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'\}
.		el \{\
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.	el \{\
.	nr 3a 1
\h'(|\n(42u+|\n(49u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#cu-\n(35u'\s0\v'\n(\*(#du-\n(#cu+\n(35u'\h'|\n(TWu'\}\}
.if \n(#a>=0 \{.sp -1
.	ie \n(#a=\n(#T \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}
.	el \{\
\h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\}\}
.nr #c 0-1
.ls
.ps \n(38p
..
.ec
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.mk #a
.sp
.nr tH 0
.ps 11
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBKhoros Image File Format Header Fields\fP
.nr tH 0
.ps 10
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.mk #c
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.nr tH 0
.sp
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\fBField\h'|\n(41u'Defines\h'|\n(42u'Description\fP
.if \n(.tu<=2v .#f
.nr tH 0
.nr 36 \n(.v
.vs \n(.vu-\n(.sp
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
.vs \n(36u
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_type\h'|\n(41u'VFF_LOC_IMPLICIT\h'|\n(42u'a normal digitized image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'location_dim\h'|\n(41u'don't care\h'|\n(42u'
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'data_storage_type\h'|\n(41u'VFF_TYP_1_BYTE\h'|\n(42u'8 bit data
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'num_data_bands\h'|\n(41u'3\h'|\n(42u'three bands per image
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_scheme\h'|\n(41u'VFF_MS_ONEPERBAND\h'|\n(42u'one map per band
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_row_size\h'|\n(41u'1\h'|\n(42u'map vector bands
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'through one column
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_col_size\h'|\n(41u'256\h'|\n(42u'256 rows in the
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_storage_type\h'|\n(41u'VFF_MAPTYP_1_BYTE\h'|\n(42u'8 bit map result
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'map_enable\h'|\n(41u'VFF_MAP_OPTIONAL\h'|\n(42u'don't have to map
.if \n(.tu<=2v .#f
.nr tH 0
.nr 32 0
.nr 32 \n(32u+\n(.du+2p
.ta \n(48u \n(49u \n(50u 
.nr 35 1m
.nr 31 \n(.f
.af 31 01
\&\h'|\n(40u'color_space_model\h'|\n(41u'VFF_CM_ntscRGB\h'|\n(42u'red, green, blue
.fc
.ch #f
.rm #f
.nr T. 1
.T# \n(T.
.rm T#
.rr 3a
.in \n(#Iu
.35
.nr #a 0
.nr #c 0
.TE
.if \n-(b.=0 .nr c. \n(.c-\n(d.-25
.nr PS 11
.sp
.LP
This is an example of a typical RGB image.
