read.raw(filename, type="PPM",
wb="CAMERA",cspace="Adobe",interp="Bilinear",maxrange=TRUE,
rm.ppm=TRUE, compress=TRUE)
read.image(filename, compress=TRUE)
make.image(x,compress=TRUE, gammatype="None", whitep = "D65", cspace="Adobe", scale="Original",xmode="RGB")type="png" allows to read greyvalue png images as RAW-data (used as internal solution to
store RAW information)TRUEdcraw. Alternatives recognized
within the package are "None", "sRGB" and "CIE" (CIE L*). Please specify if you knowxyY space. Can be given as one of (character)
c("A","B","C","E","D50","D55","D65","D75","F2","F7","F11") or as a two element numeric
vector of chromatic xy coordinates. "D65" correspo"Original" scales to (0,max(img$img)) if
min(img$img)<0< code="">, otherwise keeps the original scale.
"Maxcontrast" scales each channel to maximum contrast0<>xmode determines how to interpret the values in x if length(dim(x))==3.
Implemented are xmode="RGB" (default) and xmode="HSI"value$type.file identifying the image.cspace.interp.read.raw and TRUE for read.imageread.image.wb.read.image reads any of
the following image file formats: c("tif", "tiff", "pgm", "ppm",
"png", "pnm", "gif", "jpg", "jpeg") converts it into a temporary "pgm" or
"ppm" file. This file is removed after reading the image.
If ImageMagick is not available only "pgm", "ppm" and "pnm" formats
can be processed. If dcraw is available on the system, read.raw reads many RAW
formats. type sets options to dcraw: "PPM" sets "-4", "RAW" sets "-4
-d", "HALFSIZE" sets "-h", "INFO" sets "-i -v". wb indicates,
which white balance should be used: "NONE", "AUTO", "CAMERA".
Functions read.raw(file,type="RAW") and read.image(file) provide identical results on png-mages. If the result is a color, greyvalued
or RAW image depends on the contend of the comment associated with the png-image.
make.image converts an appropriate 2 or 3 dimensional array to
an image object of class "adimpro".
read.image