zxhproj v 2.2
zxhproj
|
image reader read gipl image, need to swap according to magic number Orientation issue: read: will consider header[106,110,114] and header[122,126,130] as x-axis and y-axis if header[138,142,146]==0 (method2), else header[106-154] is image to world matrix(method3) write: always use method2 unless det(imagetoworldmatrix)<0 then use method3 ADD: read analyze format (.hdr,.img),y-dim index should be mirror flip in order to match gipl More...
#include <zxhImageGipl.h>
Public Member Functions | |
zxhImageGiplT () | |
constructor | |
virtual | ~zxhImageGiplT () |
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 int | ReadAnalyze (const std::string filename, zxhImageDataT< PixelType > *pImg, bool read_image) |
Read Analyze image format, filename should be .hdr or .img; no orientation. |
image reader read gipl image, need to swap according to magic number Orientation issue: read: will consider header[106,110,114] and header[122,126,130] as x-axis and y-axis if header[138,142,146]==0 (method2), else header[106-154] is image to world matrix(method3) write: always use method2 unless det(imagetoworldmatrix)<0 then use method3 ADD: read analyze format (.hdr,.img),y-dim index should be mirror flip in order to match gipl
virtual zxhImageGiplT< PixelType >::~zxhImageGiplT | ( | ) | [inline, virtual] |
bool zxhImageGiplT< PixelType >::ReadHeader | ( | zxhImageInfo & | imageinfo, |
const std::string | strFilename, | ||
bool | showinfo = false |
||
) | [static] |
only read image header