Developer documentation
Version 3.0.3-105-gd3941f44
MR::Axes Namespace Reference

Functions

std::string dir2id (const Eigen::Vector3d &)
 convert axis directions between formats More...
 
Eigen::Vector3d id2dir (const std::string &)
 
void get_permutation_to_make_axial (const transform_type &T, std::array< size_t, 3 > &perm, std::array< bool, 3 > &flip)
 

Function Documentation

◆ dir2id()

std::string MR::Axes::dir2id ( const Eigen::Vector3d &  )

convert axis directions between formats

these helper functions convert the definition of phase-encoding direction between a 3-vector (e.g. [0 1 0] ) and a NIfTI axis identifier (e.g. 'i-')

◆ get_permutation_to_make_axial()

void MR::Axes::get_permutation_to_make_axial ( const transform_type T,
std::array< size_t, 3 > &  perm,
std::array< bool, 3 > &  flip 
)

determine the axis permutations and flips necessary to make an image appear approximately axial

◆ id2dir()

Eigen::Vector3d MR::Axes::id2dir ( const std::string &  )