The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cvHistWrapper.h

Go to the documentation of this file.
00001 #ifndef __CVHISTWRAPPER_H__
00002 #define __CVHISTWRAPPER_H__
00003 
00004 #include "preprocessor.h"
00005 
00006 #include "C:\Program Files\OpenCV\cv\include\CV.hpp"
00007 #include "rimage.h"
00008 #include "MPImageWrapper.h"
00009 #include "MPKeyFrame.h"
00010 
00011 /* ================================================================ */
00012 
00013 class cvHistWrapper : public CvCamShiftTracker
00014 {       
00015 private:
00016         RImage<double> m_log_back_project;
00017         int m_histlookuptable[256];
00018         CvRect m_object;
00019         bool m_expBoost;
00020 
00021 public:
00022 
00023         cvHistWrapper() {
00024                 memset(m_histlookuptable, 0, sizeof(int)*256);
00025                 m_expBoost = false;
00026                 CvCamShiftTracker();
00027         }
00028 
00029         void update_back_project(const IplImage* cur_frame);
00030         void create_lookup_table(int *tab, CvHistogram* hist);
00031         
00032         RImage<double> & get_log_back_project() {
00033                 return m_log_back_project;
00034         }
00035 
00036         bool update_histogram( const IplImage* cur_frame );
00037         
00038         void process(MPImageWrapper & imageWrapper, const long int & frameNum, MPKeyFrameCollection *collection);
00039 
00040         void set_expBoost(const bool val);
00041 };
00042 
00043 /* ================================================================ */
00044 
00045 #endif __CVHISTWRAPPER_H__

Generated on Mon Nov 8 17:07:32 2004 for MPT by  doxygen 1.3.9.1