zxhproj v 2.2
zxhproj

zxhImageNiftiT< PixelType > Class Template Reference

image reader read gipl image, need to swap according to magic number ADD: read analyze format (.hdr,.img),y-dim index should be mirror flip in order to match gipl More...

#include <zxhImageNifti.h>

List of all members.

Public Member Functions

 zxhImageNiftiT ()
 constructor
virtual ~zxhImageNiftiT ()

Static Public Member Functions

static bool OpenImage (zxhImageDataT< PixelType > *pImage, const std::string sFilename)
static bool ReadHeader (zxhImageInfo &imageinfo, const std::string strFilename, bool showinfo=false)
static bool SaveImage (zxhImageDataT< PixelType > *pImg, const zxhushort type, const std::string strFilename)
 save giple image, call SetDataType before calling this

Static Protected Member Functions

static bool SetImageInfoFromNIFTI (zxhImageInfo &imageinfo, nifti_image *pNimg)
static bool SetNIFTIFromImageInfo (nifti_image *pNimg, zxhImageInfo &imageinfo)

Detailed Description

template<class PixelType = PixelTypeDefault>
class zxhImageNiftiT< PixelType >

image reader read gipl image, need to swap according to magic number ADD: read analyze format (.hdr,.img),y-dim index should be mirror flip in order to match gipl


Constructor & Destructor Documentation

template<class PixelType = PixelTypeDefault>
virtual zxhImageNiftiT< PixelType >::~zxhImageNiftiT ( ) [inline, virtual]
Returns:

Member Function Documentation

template<class PixelType >
bool zxhImageNiftiT< PixelType >::ReadHeader ( zxhImageInfo imageinfo,
const std::string  strFilename,
bool  showinfo = false 
) [static]

only read image header

Returns:
whether recognized gipl file
template<class PixelType >
bool zxhImageNiftiT< PixelType >::SaveImage ( zxhImageDataT< PixelType > *  pImg,
const zxhushort  type,
const std::string  strFilename 
) [static]

save giple image, call SetDataType before calling this

Set data pointer in nifti image struct


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs