coords: get original ijk coordinates of niftiXd object

coordsR Documentation

get original ijk coordinates of niftiXd object

Description

Get the ijk coordinates of your niftiXd image

Arguments

x

niftiXd object

usemask

trim the coordinates returned based on mask slot of x

Details

This function looks at the dim attribute of your header to create a data frame that gives the ijk coordinates of your niftiXd image in its original nifti space. You can use the rownames of this data frame to locate the vector index of that coordinate (i.e., the column number in the niftiXd object).

Value

data frame with 3 columns (i, j, k coordinates) and rownames corresponding to vector indices

Author(s)

Zarrar Shehzad


czarrar/niftir documentation built on April 19, 2022, 3:35 a.m.