get_dcm_matrix: Get image matrix

View source: R/medical.R

get_dcm_matrixR 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)


fastai documentation built on March 31, 2023, 11:41 p.m.