channels | R Documentation |
Extract one or more channels from an RGB data array that was obtained from
an RGB NIfTI image or created by the rgbArray
function. The
result is more amenable to numeric manipulation.
channels(array, channels = c("red", "green", "blue", "alpha"), raw = FALSE)
array |
An image, an |
channels |
A character vector of channels to extract. |
raw |
Boolean value: if |
A raw-mode or integer-mode array with one more dimension than the first argument, corresponding to channels.
Jon Clayden <code@clayden.org>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.