| dim.BitmapImage {R.image} | R Documentation |
Gets the dimension of the image as a triplet, where the first integer is the height of the image, the second is the width of the image and the third is the number of bitplanes.
## S3 method for class 'BitmapImage': dim(...)
... |
Not used. |
Returns a vector of three non-negative integers.
Henrik Bengtsson (http://www.braju.com/R/)
For more information see BitmapImage.
# Read the images 'logosm.ppm' of size 51x38.
logo <- BitmapImage$read("logosm.ppm", path=system.file("images", package="R.image"))
print(dim(logo)) # 51 38 8