libvibe++ : a generic C++ library for the ViBe algorithm
ViBeTemplateBase.h
Go to the documentation of this file.
1 /* Copyright - Benjamin Laugraud <blaugraud@ulg.ac.be> - 2016
2  * Copyright - Marc Van Droogenbroeck <m.vandroogenbroeck@ulg.ac.be> - 2016
3  *
4  * ViBe is covered by a patent (see http://www.telecom.ulg.ac.be/research/vibe).
5  *
6  * Permission to use ViBe without payment of fee is granted for nonprofit
7  * educational and research purposes only.
8  *
9  * This work may not be copied or reproduced in whole or in part for any
10  * purpose.
11  *
12  * Copying, reproduction, or republishing for any purpose shall require a
13  * license. Please contact the authors in such cases. All the code is provided
14  * without any guarantee.
15  */
16 
17 /**
18  @file ViBeTemplateBase.h
19  @brief
20 
21  @author Benjamin Laungraud and Marc Van Droogenbroeck
22 
23  @date June 2016
24 */
25 
26 #ifndef _LIB_VIBE_XX_COMMON_VIBE_TEMPLATE_BASE_H_
27 #define _LIB_VIBE_XX_COMMON_VIBE_TEMPLATE_BASE_H_
28 
29 #include <iostream>
30 
31 #include "ViBeBase.h"
32 #include "../system/inline.h"
33 #include "../system/types.h"
34 
35 namespace ViBe {
36  template <class Derived>
37  class ViBeTemplateBase : public ViBeBase {
38  protected:
39 
40  typedef ViBeBase Base;
41 
42  protected:
43 
45  int32_t height,
46  int32_t width,
47  int32_t channels,
48  const uint8_t* buffer
49  );
50 
51  public:
52 
53  virtual ~ViBeTemplateBase() {}
54 
55  STRONG_INLINE void segmentation(
56  const uint8_t* buffer,
57  uint8_t* segmentationMap
58  );
59 
60  STRONG_INLINE void update(
61  const uint8_t* buffer,
62  uint8_t* updatingMask
63  );
64  };
65 
66 #include "ViBeTemplateBase.t"
67 }
68 
69 #endif /* _LIB_VIBE_XX_COMMON_VIBE_TEMPLATE_BASE_H_ */
Interface to the ViBe class.

License/Copyright

This code is copyrighted by the University of Liège, Belgium. 
It is only shared for research purposes. Please do not distribute it. 
B. Laugraud and M. Van Droogenbroeck, May 2016.