DcmFileModule.Rd
This class creates a dataset by compressing a batch of DICOM files into a single RDS file. Each DICOM file is so large that it takes a lot of time to read it, and it is a function that extracts only its metadata.
DcmFileModule
path | Path with DICOM image file |
---|---|
savePathRoot | Top path to store extracted metadata |
An object of class R6ClassGenerator
of length 24.
# NOT RUN { ############################# Example Code: Create DICOM RDS File ################################### # Path is directory folder path <- "~/Radiology/quer.ai_test" # savePathRoot is directory folder savePathRoot <- "~/Radiology/rds_test" # Parallel core core <- parallel::detectCores() - 1 DFM <- DcmFileModule$new(path = path, savePathRoot = savePathRoot, core = core) # rootPathCount is a parameter that determines which of the current DICOM file paths to cut. # If you do not want to cut this parameter, you can omit this parameter. DFM$dcmToRDS(rootPathCount = 4) ######################################## Example Code: END ########################################## # }