get_dcm_matrix {fastai} | R Documentation |
Get image matrix
Description
Get image matrix
Usage
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
## Not run:
img = dcmread('hemorrhage.dcm')
img %>% get_dcm_matrix(type = 'raw')
## End(Not run)
[Package fastai version 2.2.2 Index]