powered by
Convert image list to data.frame
# S3 method for imlist as.data.frame(x, ..., index = "im")
an image list (an imlist object)
Passed on to as.data.frame.cimg
Name of the column containing the index (or name) of the image in the list. Default: "im"
# NOT RUN { #Transform the image gradient into a data.frame gr <- imgradient(boats,"xy") %>% setNames(c("dx","dy")) %>% as.data.frame str(gr) # }
Run the code above in your browser using DataLab