Image {EBImage} | R Documentation |
Functions to create, copy and assert images.
Image(data=0.5, dim=c(200,200), colormode=Grayscale, ...) is.Image(x) stopIfNotImage(x) # S4 methods for class 'Image': copy(x) combine(x, y, ...) header(x) assert(x, y, strict=FALSE)
x, y
Image-class
. data
dim
colormode
TrueColor
or
Grayscale
. strict
TRUE
the size of all three dimensions of
two images will be compared, if FALSE
, the function will
compare only the first two dimensions (i.e. stacks can have different
size, but image size should be the same). ...
Image
, copy
, combine
and header
will return a new
object of Image-class
.
assert
and is.Image
will return a logical
.
Image
R
function new
. copy
Image-class
. It is similar to assignment, but it forces
R
to allocate new memory for the object. combine
rbind
and
cbind
allowing to add images into the stack. Properties of
the first image in argument x
will be transfered to the result.
Images must be of the same size (in first two dimensions) and in the
same color mode. header
imageData
. assert
Image-class
,
therefore it will generate an error if x
is not an Image. Use
is.Image
to test the class of a single object.is.Image
TRUE
if argument is a valid
Image
and FALSE
otherwise. stopIfNotImage
Image-class
.
2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk