powered by
"as.data.frame"(x, ..., index = "im")
#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