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

Classes responsible for handling of specific image formats. More...

Classes

class  Base
 the interface for classes that support the various image formats. More...
 
class  DICOM
 
class  MGH
 
class  MGZ
 
class  MRI
 
class  MRtrix
 
class  MRtrix_GZ
 
class  MRtrix_sparse
 
class  NIfTI1
 
class  NIfTI1_GZ
 
class  NIfTI2
 
class  NIfTI2_GZ
 
class  PAR
 
class  Pipe
 
class  XDS
 

Functions

template<class SourceType >
void read_mrtrix_header (Header &, SourceType &)
 
bool next_keyvalue (File::KeyValue::Reader &, std::string &, std::string &)
 
bool next_keyvalue (File::GZ &, std::string &, std::string &)
 
void get_mrtrix_file_path (Header &, const std::string &, std::string &, size_t &)
 
template<class StreamType >
void write_mrtrix_header (const Header &, StreamType &)
 
vector< ssize_t > parse_axes (size_t ndim, const std::string &specifier)
 

Variables

const char * known_extensions []
 
const Basehandlers []
 

Detailed Description

Classes responsible for handling of specific image formats.

Function Documentation

◆ get_mrtrix_file_path()

void MR::Formats::get_mrtrix_file_path ( Header ,
const std::string &  ,
std::string &  ,
size_t &   
)

◆ next_keyvalue() [1/2]

bool MR::Formats::next_keyvalue ( File::GZ ,
std::string &  ,
std::string &   
)

◆ next_keyvalue() [2/2]

bool MR::Formats::next_keyvalue ( File::KeyValue::Reader ,
std::string &  ,
std::string &   
)

◆ parse_axes()

vector< ssize_t > MR::Formats::parse_axes ( size_t  ndim,
const std::string &  specifier 
)

◆ read_mrtrix_header()

template<class SourceType >
void MR::Formats::read_mrtrix_header ( Header H,
SourceType &  kv 
)

Definition at line 64 of file mrtrix_utils.h.

◆ write_mrtrix_header()

template<class StreamType >
void MR::Formats::write_mrtrix_header ( const Header H,
StreamType &  out 
)

Definition at line 149 of file mrtrix_utils.h.

Variable Documentation

◆ handlers

const Base* MR::Formats::handlers[]
extern

a list of all handlers for supported image formats.

◆ known_extensions

const char* MR::Formats::known_extensions[]
extern

a list of all extensions for image formats that MRtrix can handle.