zxhproj v 2.2
zxhproj

zxhImageGiplT< PixelType > Class Template Reference

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>

List of all members.

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.

Detailed Description

template<class PixelType = PixelTypeDefault>
class zxhImageGiplT< PixelType >

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


Constructor & Destructor Documentation

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

Member Function Documentation

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

only read image header

Returns:
whether recognized gipl file

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