getColors.BitmapImage {R.image}R Documentation

Gets the color matrix

Description

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".

Usage

## S3 method for class 'BitmapImage':
getColors(...)

Arguments

... Not used.

Value

Returns a character matrix of the same dimensions as the image.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getColorMap(). For more information see BitmapImage.

Examples

   # Read the images 'logosm.ppm' of size 51x38.
   logo <- BitmapImage$read("logosm.ppm", path=system.file("images", package="R.image"))

   print(getColors(logo))
  

[Package R.image version 0.2.3 Index]