Description Usage Arguments Details Value Author(s) See Also Examples
channel handles color space conversions between image modes.
rgbImage combines Grayscale images into a Color one.
toRGB is a wrapper function for convenient grayscale to RGB color space conversion; the call toRGB(x) returns the result of channel(x, 'rgb').
1 2 3 4  | 
x | 
 An   | 
mode | 
 A character value specifying the target mode for conversion. See Details.  | 
red, green, blue | 
 
  | 
Conversion modes:
rgbConverts a Grayscale image or an array
into a Color image, replicating RGB channels.
gray, greyConverts a Color image into a
Grayscale image, using uniform 1/3 RGB weights.
luminanceLuminance-preserving Color to Grayscale conversion
using CIE 1931 luminance weights: 0.2126 * R + 0.7152 * G + 0.0722 * B.
red, green, blueExtracts the red, green or
blue channel from a Color image. Returns a
Grayscale image.
asred, asgreen, asblueConverts a Grayscale
image or an array into a Color image of the specified hue.
NOTE: channel changes the pixel intensities, unlike colorMode
which just changes the way that EBImage renders an image.
An Image object or an array.
Oleg Sklyar, osklyar@ebi.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13  |  x = readImage(system.file("images", "shapes.png", package="EBImage"))
 display(x)
 y = channel(x, 'asgreen')
 display(y)
 ## rgbImage
 x = readImage(system.file('images', 'nuclei.tif', package='EBImage'))
 y = readImage(system.file('images', 'cells.tif', package='EBImage'))
 display(x, title='Cell nuclei')
 display(y, title='Cell bodies')
 cells = rgbImage(green=1.5*y, blue=x)
 display(cells, title='Cells')
 | 
Only the first frame of the image stack is displayed.
To display all frames use 'all = TRUE'.
Only the first frame of the image stack is displayed.
To display all frames use 'all = TRUE'.
Only the first frame of the image stack is displayed.
To display all frames use 'all = TRUE'.
Warning message:
system call failed: Cannot allocate memory 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.