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 June 22, 2024, 11:15 a.m.