readNpy: Read a numpy image file from disk

Description Usage Arguments Details Value Examples

Description

Uses the reticulate package to create an R representation of the numpy module Created for issue-60

Usage

1
2
3
4
5
readNpy(fp)

readImg(img_id, dir = hipsOpt(dir_img_proc))

showImg(img_id, dir = hipsOpt(dir_img_proc))

Arguments

fp

chr(1) file path to numpy image

Details

readNpy takes a numpy file path

readImg takes and image id and infers the path

showImg is fxn composition of readImg and vizR::Viz

Value

array

Examples

1
2
3
readNpy("/media/marcus/Vulcan/radiology/msh_hip/imgs/1104.15.1202.129.1155.118.20151106131219.124.npy")
hipsCohort() %>% `[[`(1, "img") %>% readImg() %>% Viz()
hipsCohort() %>% `[[`(1, "img") %>% showImg()

mbadge/hipsMultimodal documentation built on May 9, 2019, 12:05 a.m.