readjpeg | R Documentation |
Reads a jpeg or tiff file and combines the channels to produce a monochrome image in a matrix.
readjpeg(filename, channels)
readtiff(filename, channels)
filename |
File name |
channels |
A vector of length 3 with the channel weights |
Values in channels should be non-negative, but need not add to one.
A double precision matrix with the image data.
The matrix must have rows reversed and transposed to
display properly with image()
.
M.L. Peck mpeck1@ix.netcom.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.