powered by
Split a colour image into a list of separate channels
channels(im, index, drop = FALSE)
a list of channels
an image
which channels to extract (default all)
if TRUE drop extra dimensions, returning normal arrays and not cimg objects
frames
cimg.limit.openmp() 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