Skip to content
Sort DICOM images
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
tests
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE.md
NAMESPACE
NEWS.md
README.Rmd
README.md
appveyor.yml
dcmsort.Rproj

README.md

Travis build status AppVeyor Build Status Coverage status

dcmsort Package:

The goal of dcmsort is to provide wrapper functions to sort DICOM images

Installation

You can install dcmsort from GitHub with:

# install.packages("remotes")
remotes::install_github("muschellij2/dcmsort")

Example

Here is an example of sorting and converting a single suject DICOM data for non-contrast brain CT images. The directory variable is set to the DICOM folder for that patient.

library(dcmsort)
sorted = dcmsort(directory = directory, copy_files = FALSE)

outfile = file.path(sorted$directory, "all_hdr.rds")
all_hdr = read_all_hdr(
  directory = sorted$directory,
  outfile = outfile)
sub_hdr = subset_hdr(all_hdr)
ct_hdr = noncon_brain_ct(
  sub_hdr = sub_hdr,
  delete_localizers = TRUE)
converted = convert_hdr_nii(
  sub_hdr = ct_hdr$ct_data, 
  merge_files = TRUE, 
  ignore_derived = TRUE,
  overwrite = FALSE
)
You can’t perform that action at this time.