powered by
Split a colour image into a list of separate channels
channels(im, index, drop = FALSE)
an image
which channels to extract (default all)
if TRUE drop extra dimensions, returning normal arrays and not cimg objects
a list of channels
frames
# NOT RUN { channels(boats) channels(boats,1:2) channels(boats,1:2,drop=TRUE) %>% str #A list of 2D arrays # }
Run the code above in your browser using DataLab