occlusionhandler.h
来自「VC视频对象的跟踪提取原代码(vc视频监控源码)」· C头文件 代码 · 共 71 行
H
71 行
/*************************************************************** * C - C++ Header * * File : OcclusionHandler.h * * Module : OcclusionHandler * * Author : A M Baumberg (CoMIR) * * Creation Date : Fri Aug 9 15:21:49 1996 * * Comments : base class to handle occlusion * ***************************************************************/#ifndef __OCCLUSION_HANDLER_H__#define __OCCLUSION_HANDLER_H__#include <cassert>#include "tracker_defines_types_and_helpers.h" // for object_id_tnamespace ReadingPeopleTracker{class Profile;class OcclusionHandler{public: virtual void setup_occlusion_map(Profile *prf) { bool this_has_been_redefined_ok = false; assert (this_has_been_redefined_ok == true); // do not use this one, redefine! } virtual void setup_occlusion_map(object_id_t object_id) // for OcclusionImage { bool this_has_been_redefined_ok = false; assert (this_has_been_redefined_ok == true); // do not use this one, redefine! } // return true if pixel is occluded by other object (with different object id) virtual bool is_occlusion(const int &x, const int &y) const = 0; // return true if pixel is not in image area virtual bool is_off_image(const int &x, const int &y) const = 0; // wrappers for realno arguments inline bool is_occlusion(const realno &x, const realno &y) const { return is_occlusion((int) (x+.5), (int) (y+.5)); } inline bool is_off_image(const realno &x, const realno &y) const { return is_off_image((int) (x+.5), (int) (y+.5)); } };} // namespace ReadingPeopleTracker#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?