Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

channels

Split a colour image into a list of separate channels


Description

Split a colour image into a list of separate channels

Usage

channels(im, index, drop = FALSE)

Arguments

im

an image

index

which channels to extract (default all)

drop

if TRUE drop extra dimensions, returning normal arrays and not cimg objects

Value

a list of channels

See Also

frames

Examples

channels(boats)
channels(boats,1:2)
channels(boats,1:2,drop=TRUE) %>% str #A list of 2D arrays

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.