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;
public:
Trail(int trail_length, cv::Size frame_size)
{
+ background = NULL;
redraw_current_frame = false;
drawStrategy = frameCopy;
persistent = false;