zxhproj v 2.2
zxhproj
|
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>
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) |
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
virtual zxhImageNiftiT< PixelType >::~zxhImageNiftiT | ( | ) | [inline, virtual] |
bool zxhImageNiftiT< PixelType >::ReadHeader | ( | zxhImageInfo & | imageinfo, |
const std::string | strFilename, | ||
bool | showinfo = false |
||
) | [static] |
only read image header
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