get_dcm_matrix: Get image matrix

Description Usage Arguments Value Examples

View source: R/medical.R

Description

Get image matrix

Usage

1
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

1
2
3
4
5
6
7
## Not run: 

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


## End(Not run)

fastai documentation built on July 28, 2021, 5:06 p.m.