zxhproj v 2.2
zxhproj

zxhMetricJE Class Reference

joint entropy based on histogram More...

#include <zxhMetricJE.h>

Inheritance diagram for zxhMetricJE:
zxhMetricBase

List of all members.

Public Member Functions

 zxhMetricJE (void)
 constructor
 ~zxhMetricJE (void)
virtual std::string GetMetricType ()
 GetMetricType()=0.
virtual zxhMetricBaseClone (zxhMetricBase *&pRet)
virtual bool SetImage (zxhImageData *pImageTest, zxhImageData *pImageRef)
virtual int GetValue (zxhlfloat &fValue)
void SetNumberOfHistogramBins (int i=64)
int GetNumberOfHistogramBins ()
virtual std::string GetPrintString ()
virtual bool SetMetricFromStream (std::ifstream &ifs)
virtual bool PreComputeImageGraylevel ()
 pre-computation for Image GraySpan before using this object, this make the method better

Static Public Attributes

static const int m_stc_iPaddedBins = 4
 padded bin for the parzen windows

Protected Member Functions

float BSplinei (int iOrd, float u)
int ComputeHistogramFromPDF4D (float *&afPDF, float &fTotalFreq, float xfTestFrom, float xfTestTo, float yfTestFrom, float yfTestTo, float zfTestFrom, float zfTestTo, float tfTestFrom, float tfTestTo)
 from and to are image grid coordinate, not the test image coordinate that considering spacing

Protected Attributes

int m_iNumberOfHistogramBins
PixelTypeDefault m_aiImageTestGraySpan [2]
 for test image gray level min and max
PixelTypeDefault m_aiImageRefGraySpan [2]
 for ref image gray level min and max
float m_fEntropyT
float m_fEntropyR
float m_fEntropyJ
float m_fTotalFreq
 for
float * m_afHistogram

Detailed Description

joint entropy based on histogram


Constructor & Destructor Documentation

zxhMetricJE::~zxhMetricJE ( void  )
Returns:

Member Function Documentation

float zxhMetricJE::BSplinei ( int  iOrd,
float  u 
) [inline, protected]
Returns:
zxhMetricBase * zxhMetricJE::Clone ( zxhMetricBase *&  pRet) [virtual]
Returns:

Reimplemented from zxhMetricBase.

int zxhMetricJE::GetNumberOfHistogramBins ( ) [inline]
Returns:
std::string zxhMetricJE::GetPrintString ( ) [virtual]
Returns:

Reimplemented from zxhMetricBase.

int zxhMetricJE::GetValue ( zxhlfloat &  fValue) [virtual]
Returns:

Implements zxhMetricBase.

bool zxhMetricJE::PreComputeImageGraylevel ( ) [virtual]

pre-computation for Image GraySpan before using this object, this make the method better

std::cout<<"pre compute ref image gray lever:"<<m_aiImageRefGraySpan[0]<<" to "<<m_aiImageRefGraySpan[1]<<" SUCCESS!\n";

bool zxhMetricJE::SetImage ( zxhImageData pImageTest,
zxhImageData pImageRef 
) [virtual]
Returns:
bool zxhMetricJE::SetMetricFromStream ( std::ifstream &  ifs) [virtual]
Returns:

Reimplemented from zxhMetricBase.

void zxhMetricJE::SetNumberOfHistogramBins ( int  i = 64) [inline]
Returns:

Member Data Documentation

float* zxhMetricJE::m_afHistogram [protected]
Returns:
float zxhMetricJE::m_fEntropyJ [protected]
Returns:
float zxhMetricJE::m_fEntropyR [protected]
Returns:
float zxhMetricJE::m_fEntropyT [protected]
Returns:
Returns:

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