r - 将多个图像加载到 R 中进行操作
问题描述
目前,我正在尝试将 100 多个图像(已排序)加载到 R 中并由 deriche 的 imager 转换。我试过了:
files <- list.files(path="C:/Users/amarchand/Desktop/TVideos", pattern=".png$",all.files=T, full.names=F, no.. = T)
这工作正常,然后我输入:
PNG=lapply(files,readPNG)
一旦输入这些行,我就去做
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].
有没有我遗漏的代码行,或者有没有比我拥有的代码更好的代码?
解决方案
推荐阅读
- c++ - 如何在 C++ 中的猜数游戏中添加一个计时器,当计时器从 30 秒倒计时到 0 秒时结束游戏?
- apache-flink - 将整行作为参数传递给 Flink Table API 中的用户定义表函数
- python - 如何在python上的站点中添加数字
- c - 尝试使用指向结构的指针插入数据导致分段错误
- ssis - 使用 C# 以编程方式使用 BIMLC.EXE 生成 SSIS 包
- spring-boot - PayPal REST API 返回 INVALID_CURRENCY_AMOUNT_FORMAT
- python - 如何将小部件 Tkinter python 对齐到右侧
- python - 检查数据框中的每一行和每一列并用用户定义函数替换值
- pdf - 使用 Chrome 检查在 Chrome 上编辑 PDF 中的文本
- django-models - 我怎样才能只使用 Django 用户模型的几个属性?