Get image matrix

get_dcm_matrix(img, type = "raw", scan = "", size = 50, convert = TRUE)

Arguments

img

dicom file

type

img transformation

scan

apply uniform or gaussian blur effects

size

size of image

convert

to R matrix or keep tensor

Value

tensor

Examples


if (FALSE) {

img = dcmread('hemorrhage.dcm')
img %>% get_dcm_matrix(type = 'raw')

}