OOF2: The Manual
Name
GrayData8 (GrayData8) — Gray image data.
Synopsis
GrayData8
(grayvalues
)
Details
-
Base class:
ImageData
-
Parameters:
grayvalues
- Gray values. Type: A list of unsigned short integers.
Description
GrayData8
objects are used to store Image
pixels in OOF2 data files. The grayvalues
argument contains a Python list
of unsigned short integers, representing the gray values of the
pixels, starting at the top left of the image and proceeding by
rows. That is, the pixels are written in the order described by
the followind pseudocode:
loop over rows from top to bottom:
loop over columns from left to right:
write gray
The origin of the name GrayData8
is lost in
the mists of time. It should probably be
GrayData16
. Since it's only used internally
in data files, it's not worth changing it.