image,Image-method {EBImage}R Documentation

Generic methods for objects of class Image

Description

Image-class 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:

Generic methods

print(x, ...) and show(object)
Prints a summary of image and properties (as described in 'Accessor methods' section). Prints also an excerpt of data keeping it to the minimum just to have a visual control over the atomic data type. UseimageData(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)
Removed to avoid incompatibilities with R < 2.5. Use imageData instead.
as.matrix(x, ...)
Removed to avoid incompatibilities with R < 2.5. Use as.matrix(imageData(x)) instead.
hist(x, ...)
Slightly modyfied to better suit the assumed grayscale data range [0,1].
image(x, ...)
Draws image data using graphics::image keeping image aspect ratio.
[
Redefined versions (with different argument classes) of array subsetting operator. This returns objects of class Image without dropping dimensions.

Other important methods that are taken over from array class. These were not modified in the package and work in exactly the same manner as for array. We just want to stress that they can and should be used:

dim(x) and dim(x) <- value
Gets and sets image dimensions.
fft(z, inverse = FALSE)
Performs the Fast Fourier Transformation on an Image.
sqrt(x)
Miscellaneous mathematical functions.

Author(s)

Copyright (c) 2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk

See Also

Image-class, Image


[Package EBImage version 2.0.1 Index]