将多个图像加载到R中进行操作

将多个图像加载到R中进行操作,r,image,edge-detection,R,Image,Edge Detection,目前我正在尝试将100多张图像(按顺序)加载到R中,并由deriche通过imager进行转换。我试过: files <- list.files(path="C:/Users/amarchand/Desktop/TVideos", pattern=".png$",all.files=T, full.names=F, no.. = T) 一旦这些行被输入,我就去做 im.xedges <- deriche(PNG,2,order=2,axis="x") 是否有我缺少的代码行,或者有

目前我正在尝试将100多张图像(按顺序)加载到R中,并由deriche通过imager进行转换。我试过:

files <- list.files(path="C:/Users/amarchand/Desktop/TVideos", pattern=".png$",all.files=T, full.names=F, no.. = T)
一旦这些行被输入,我就去做

im.xedges <- deriche(PNG,2,order=2,axis="x")

是否有我缺少的代码行,或者有比我拥有的代码更好的代码?

请按住CTRL+K键,以获得更好的输出。
deriche
来自哪里?您应该指定帮助Deriche来自imager软件包所需的任何软件包。现在我正在使用imager、png、magick、eBImageTools和bioimagetools。请按住CTRL+K键以获得更好的输出。deriche来自哪里?您应该指定帮助Deriche来自imager软件包所需的任何软件包。现在我正在使用imager、png、magick、EBImage和bioimagetools。
im.xedges <- deriche(PNG,2,order=2,axis="x")
Error in deriche(PNG, 2, order = 2, axis = "x") : 
Not compatible with requested type: [type=list; target=double].