projects
/
experiments
/
opencv_trail_effect.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
opencv_trail_effect.cpp: hardcode V4L2 VideoCapture backend on linux
[experiments/opencv_trail_effect.git]
/
Trail.hpp
diff --git
a/Trail.hpp
b/Trail.hpp
index
e519c94
..
ecf486a
100644
(file)
--- a/
Trail.hpp
+++ b/
Trail.hpp
@@
-10,7
+10,7
@@
class Trail {
private:
virtual void iterate(cv::Mat& frame, void (*action)(cv::Mat&, Frame *, int, int)) = 0;
private:
virtual void iterate(cv::Mat& frame, void (*action)(cv::Mat&, Frame *, int, int)) = 0;
- cv::Mat *background
= NULL
;
+ cv::Mat *background;
bool redraw_current_frame;
bool persistent;
bool redraw_current_frame;
bool persistent;
@@
-58,6
+58,7
@@
protected:
public:
Trail(int trail_length, cv::Size frame_size)
{
public:
Trail(int trail_length, cv::Size frame_size)
{
+ background = NULL;
redraw_current_frame = false;
drawStrategy = frameCopy;
persistent = false;
redraw_current_frame = false;
drawStrategy = frameCopy;
persistent = false;