image,Image-method {EBImage} | R Documentation |
Image
supports all (or almost all) operations that are
defined for array
. However, the default behavior of some
generics was redefined in the package to better suit the class. Those are:
show(object)
imageData(x)
to print or
assign the full dataset. If image was put through the object detection
algorithm a summary of detected objects will be printed instead of data. as.array(x)
imageData
instead. as.matrix(x, ...)
as.matrix(imageData(x))
instead. hist(x, ...)
median(x, na.rm=FALSE)
stats:median
redefinition
for images (bug workaround: without it median
takes forever to
execute without no apparent reason)image(x, ...)
graphics::image
keeping image aspect ratio. [
array
subsetting operator. These return objects of class
Image
without dropping dimensions. Arith
Image
with another Image
or array
will return an object of class Image
. as.Image)(x, ...)
x=array
.
Is equivalent to Image(x)
when x
is array
.
Other important methods that directly applicable due to inheritance from the
array
class, just to stress that they can and should be used:
dim(x)
and dim(x) <- value
fft(z, inverse = FALSE)
sqrt(x)
etc.Oleg Sklyar, osklyar@ebi.ac.uk, 2006-2007