ijk2xyz: Converting between standard and image coordinates

View source: R/header.R

ijk2xyzR Documentation

Converting between standard and image coordinates

Description

Transform your array coordinates (ijk) into standard space coordinates (xyz), and vice-versa

Usage

ijk2xyz(header, ijk, use.qform=T)
xyz2ijk(header, xyz, use.qform=T)

Arguments

header

can be list, nifti, or niftiXd object

ijk

coordinates in your array

xyz

coordinates in standard space

use.qform

if TRUE will use qform transfomation, otherwise will use sform

Value

transformed xyz => ijk coordinates or vice-versa (so a vector of length 3)

Author(s)

Zarrar Shehzad


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