| dcmj2pnm | R Documentation | 
dcmdump from DCMTKConvert DICOM images to PGM/PPM, PNG, JPEG or BMP using
dcmdump from DCMTK
dcmj2pnm(file, outfile = tempfile(fileext = ".png"), opts = "--write-png", ...)
| file | DICOM file name | 
| outfile | output file name passed to  | 
| opts | opts passed to  | 
| ... | options passed to  | 
Character vector of information
if (have_dcmtk_cmd("dcmj2pnm")) {
  file = system.file("extdata", "example.dcm", package = "dcmtk")
  png_file = dcmj2pnm(file)
  print(png_file)
  print(file.exists(png_file))
  print(normalizePath(png_file))
  img = png::readPNG(png_file)
  plot(1:2, type='n')
  image(img)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.