zxhproj v 2.2
zxhproj

zxhImageHistogramT< PixelType > Class Template Reference

compute images histogram imagespacing is the intensity span of the histogram bin histogram bin value m_pImageData[1]~m_pImageData[m_iHistogramSize] More...

#include <zxhImageHistogram.h>

Inheritance diagram for zxhImageHistogramT< PixelType >:
zxhImageDataT< float >

List of all members.

Public Member Functions

virtual zxhImageDataT< float > * Clone (zxhImageDataT< float > *&p)
 new an image and clone
virtual void SetImages (int ndim, zxhImageDataT< PixelType > **p)
 all image need to be same dimension/size/spacing
virtual void SetImages (zxhImageDataT< PixelType > **p)
 all image need to be same dimension/size/spacing
virtual void SetOneImage (int id, zxhImageData *p)
virtual zxhImageDataT
< PixelType > * 
GetImages (int idim)
virtual void SetMaskImages (int ndim, zxhImageData **p)
virtual void SetMaskImages (zxhImageData **p)
virtual void SetOneMaskImage (int id, zxhImageData *p)
virtual zxhImageDataGetMaskImages (int idim)
virtual void SetHistogramSizes (int ndim, int *size)
 set size, 0 mean according to unit of the intensity
virtual void SetHistogramSizes (int *size)
virtual int GetHistogramSizes (int idim)
virtual float * GetHistogramSpacings ()
virtual float GetHistogramSpacing (int idim)
virtual bool SetHistogramBinValue (int *binPos, float v)
virtual float GetHistogramBinValue (int *binPos)
virtual float GetHistogramBinValue (int d0, int d1=0, int d2=0, int d3=0)
virtual bool Evaluate (zxh::TypeHistogramCompute ParzenWindow=zxh::PDFType_Histogram)

Static Public Member Functions

static void EvaluateToHistogramOfCurrentVoxsByParzenWindowType (float *pHistogram, int dimension, int *pNoBins, float *pBinSpacings, PixelType *pIntensities, PixelType *pIntensitiesMin, zxh::TypeHistogramCompute ParzenWindow)
 compute the currect pixel-pair's contribute to the histogram data

Protected Member Functions

virtual bool EvaluateUniformVolume ()
 based on R. Shams, R. A. Kennedy, P. Sadeghi and R. Hartley, "Gradient intensity-based registration of multi-modal images of the brain," Proc. IEEE Int. Conf. on Computer Vision (ICCV), Rio de Janeiro, Brazil, Oct. 2007.

Protected Attributes

zxhImageDataT< PixelType > * m_apImages [ImageDimensionMax]
zxhImageDatam_apMasks [ImageDimensionMax]
int m_aiHistogramSizes [ImageDimensionMax]
int m_aiHistogramPaddings [ImageDimensionMax]

Detailed Description

template<class PixelType = PixelTypeDefault>
class zxhImageHistogramT< PixelType >

compute images histogram imagespacing is the intensity span of the histogram bin histogram bin value m_pImageData[1]~m_pImageData[m_iHistogramSize]


Member Function Documentation

template<class PixelType = PixelTypeDefault>
virtual void zxhImageHistogramT< PixelType >::SetMaskImages ( int  ndim,
zxhImageData **  p 
) [inline, virtual]

all mask image need to be same dimension/size/spacing and same as input images currently only maskimages[0] effects

template<class PixelType = PixelTypeDefault>
virtual void zxhImageHistogramT< PixelType >::SetMaskImages ( zxhImageData **  p) [inline, virtual]

all mask image need to be same dimension/size/spacing and same as input images currently only maskimages[0] effects


Member Data Documentation

template<class PixelType = PixelTypeDefault>
zxhImageData* zxhImageHistogramT< PixelType >::m_apMasks[ImageDimensionMax] [protected]

mask image for computing the histogram should be the same dimension size, spacing as m_pImage currecntly only based on m_apMasks[0]


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