Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
JointHistogram.hh
1 #ifndef __JointHistogram_hh__
2 #define __JointHistogram_hh__
3 #include <Base/Common/BIASpragmaStart.hh>
4 
5 #include <Base/Image/Image.hh>
6 
7 namespace BIAS{
8 
9  template <class StorageType>
10  class BIASImage_EXPORT JointHistogram{
11 
12  public:
14  ~JointHistogram();
15 
16 
17  int ComputeParzenWindow(BIAS::Image<StorageType>& image1,
19  unsigned int nrOfSamples);
20 
21  int Compute(BIAS::Image<StorageType>& image1,
22  BIAS::Image<StorageType>& image2);
23 
24  void Draw(BIAS::Image<float>& image);
25 
26  float CalcShannonEntropy();
27  float CalcRenyiEntropy(double alpha);
28  protected:
29 
30  void Normalize_();
31  void NormalizeParzen_();
32 
33  protected:
34  unsigned int dWidth_;
35  unsigned int dHeight_;
36  unsigned int dChannelCount_;
42  unsigned int pixelCount_;
43  unsigned int dNumberOfSamples_;
44  };
45 }
46 #include <Base/Common/BIASpragmaEnd.hh>
47 #endif
BIAS::Image< float > gaussImage1_
unsigned int dNumberOfSamples_
BIAS::Image< float > gaussImage2_
BIAS::Image< float > nrImage_
unsigned int pixelCount_
unsigned int dChannelCount_
The image template class for specific storage types.
Definition: Image.hh:78
BIAS::Image< float > drawImage_
BIAS::Image< float > histImage_