readjpeg: Read a jpeg or tiff file

View source: R/imgutils.r

readjpegR Documentation

Read a jpeg or tiff file

Description

Reads a jpeg or tiff file and combines the channels to produce a monochrome image in a matrix.

Usage

readjpeg(filename, channels)
readtiff(filename, channels)

Arguments

filename

File name

channels

A vector of length 3 with the channel weights

Details

Values in channels should be non-negative, but need not add to one.

Value

A double precision matrix with the image data.

Note

The matrix must have rows reversed and transposed to display properly with image().

Author(s)

M.L. Peck mpeck1@ix.netcom.com


mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.