as.data.frame.imlist | R Documentation |
Convert image list to data.frame
## S3 method for class 'imlist'
as.data.frame(x, ..., index = "im")
x |
an image list (an imlist object) |
... |
Passed on to as.data.frame.cimg |
index |
Name of the column containing the index (or name) of the image in the list. Default: "im" |
#Transform the image gradient into a data.frame
gr <- imgradient(boats,"xy") %>% setNames(c("dx","dy")) %>% as.data.frame
str(gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.