Read Raw Image Data

DESCRIPTION:

Reads raw image data from a file and creates an S-PLUS matrix suitable for printing with image.

USAGE:

read.image(nrow, ncol, filename, type="ubyte", flip=T, byrow=T) 

REQUIRED ARGUMENTS:

nrow
an integer specifying the number of rows.
ncol
an integer specifying the number of columns.
filename
a character string specifying the name of the file containing the raw image data. If the file is not in the current directory, the path must be specified.

OPTIONAL ARGUMENTS:

type
a character string, one of "byte", "ubyte", "short", or "int". Image data stored in ASCII form should use the default "ubyte".
flip
Logical flag. If TRUE, the columns of the image are reversed.
byrow
Logical flag. If TRUE, the rows of the returned matrix are filled before the columns.

VALUE:

a matrix suitable for use with image.

SEE ALSO:

,