| getColors.BitmapImage {R.image} | R Documentation |
Gets the color matrix of the image and with the same dimensions as the image. Element [1,1] is at the upper left corner. All values are of the format "#rrggbb".
## S3 method for class 'BitmapImage': getColors(...)
... |
Not used. |
Returns a character matrix of the same dimensions as the image.
Henrik Bengtsson (http://www.braju.com/R/)
*getColorMap().
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(getColors(logo))