如何将文件扩展名为 .dcm 的 Dicom 图像转换为 R 中的 Jpg 或 Png
我在 R 中尝试以下代码,但收到错误为错误:'...' 在不正确的上下文中使用
我下面的 R 代码有什么问题。
source("https://neuroconductor.org/neurocLite.R")
neuro_install('dcmtk')
install_dcmtk()
library(dcmtk)
setwd("D:/train/ID00007637202177411956430")
dcm<-readDICOMFile("27.dcm")
dcmj2pnm(dcm, outfile = tempfile(fileext = ".png"),opts = "--write-png", ...)