Learn R Programming

imager (version 0.31)

as.data.frame.imlist: Convert image list to data.frame

Description

Convert image list to data.frame

Usage

"as.data.frame"(x, ..., index = "im")

Arguments

x
an image list (an imlist object)
...
Passed on to as.data.frame.cimg
index
Name of the colum containing the index (or name) of the image in the list. Default: "im"

Examples

Run this code
#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