R/medical.R
get_dcm_matrix.Rd
Get image matrix
get_dcm_matrix(img, type = "raw", scan = "", size = 50, convert = TRUE)
dicom file
img transformation
apply uniform or gaussian blur effects
size of image
to R matrix or keep tensor
tensor
if (FALSE) { img = dcmread('hemorrhage.dcm') img %>% get_dcm_matrix(type = 'raw') }