A.I.M.S


aims::MincReader< T > Class Template Reference

A class for reading MINC files (from the Montreal Neurological Institute) It is still under development. More...

#include <aims/io/mincR.h>

Public Member Functions

 MincReader (const std::string &name, const std::string &read_mode="real", ItemReader< T > *ir=0)
 Constructor. More...
 
 ~MincReader ()
 
void read (AimsData< T > &thing, const carto::AllocatorContext &context, carto::Object options)
 Read the MINC volume. More...
 
void setReadMode (const std::string &mode)
 set read mode The read mode can be either "real" or "voxel" More...
 
void setItemReader (ItemReader< T > *ir)
 

Detailed Description

template<class T>
class aims::MincReader< T >

A class for reading MINC files (from the Montreal Neurological Institute) It is still under development.

Any type "T" can be instantiated, regardless of the actual file type. It is recommended to use S16 (short) types for reading MRI and label volumes and to use FLOAT for everything else. The constructor also specifies the "read mode". It can be either "real" or "voxel" depending on wether one wants to read "real values" (i.e. with the scale factor applied) or "voxel values". Default value is "real". It is strongly recommended to use the "voxel" mode for MRI volumes and "real" mode for all others (including label volumes).

Definition at line 86 of file mincR.h.

Constructor & Destructor Documentation

template<class T>
aims::MincReader< T >::MincReader ( const std::string &  name,
const std::string &  read_mode = "real",
ItemReader< T > *  ir = 0 
)
inline

Constructor.

Parameters
nameThe name of the MINC file must be provided.
read_modeThe read mode is optional : it can be either "real" or "voxel" depending on wether one wants to read "real values" (i.e. with the scale factor applied) or "voxel values". Default value is "real". It is strongly recommended to use the "voxel" mode for MRI volumes and "real" mode for all others (including label volumes).

Definition at line 94 of file mincR.h.

template<class T>
aims::MincReader< T >::~MincReader ( )
inline

Definition at line 98 of file mincR.h.

Member Function Documentation

template<class T>
void aims::MincReader< T >::setItemReader ( ItemReader< T > *  ir)
inline

Definition at line 110 of file mincR.h.

template<class T>
void aims::MincReader< T >::setReadMode ( const std::string &  mode)
inline

set read mode The read mode can be either "real" or "voxel"

Definition at line 108 of file mincR.h.


The documentation for this class was generated from the following file: