Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
)

About

Sort DICOM images

Resources

License

Releases

No releases published

Packages

No packages published

Languages