How to convert Dicom images with file extension .dcm to Jpg or Png in R
I am attempting the following code in R, but getting error as Error: '...' used in an incorrect context
What is wrong in my below R code.
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", ...)