Read scanimage tiffs into an R object
read.scanimage(source, slices = Inf, frames = Inf, channels = Inf, info = T, as.is = TRUE, ...)
source | Either name of the file to read from or a raw vector representing the TIFF file content. |
---|---|
slices | Which slices to return (default of Inf reads all available slices). A slice is a single channel 2D TIFF image. |
frames | Which frames to read (default of Inf reads all available frames). A frame is one or more 2D TIFF images acquired simultaneously. |
channels | which channels to read (default value of |
info | if set to |
as.is | Return original pixel values without rescaling where possible.
This is usually what you want for 8 and 16 bit scanimage TIFFs (default
|
... | additional arguments for |
A list of 2D matrices (height x width) except for the special case when the first slice has been requested.
t=read.scanimage(system.file('extdata/Blank-IPA_1s_16r_032.tif', package='scanimage'))