Skip to content
Snippets Groups Projects
Commit d636a68b authored by calrama's avatar calrama
Browse files

Cleanup

parent 32cf21ea
Branches
No related tags found
No related merge requests found
...@@ -7,12 +7,9 @@ ...@@ -7,12 +7,9 @@
#include "CustomBackgroundSubtractor.h" #include "CustomBackgroundSubtractor.h"
QMutex bgsMutex; QMutex bgsMutex;
QMutex oriImageMutex;
QMutex initBgkFrameNumMutex;
ImagePreProcessor::ImagePreProcessor(TrackerParameter* p_TrackingParameter) : ImagePreProcessor::ImagePreProcessor(TrackerParameter* p_TrackingParameter) :
_maxBackgroundImageInitTime(0) m_subtractor(new CustomBackgroundSubtractor())
, m_subtractor(new CustomBackgroundSubtractor())
{ {
_TrackingParameter = p_TrackingParameter; _TrackingParameter = p_TrackingParameter;
init(); init();
...@@ -22,18 +19,6 @@ ImagePreProcessor::~ImagePreProcessor(void) ...@@ -22,18 +19,6 @@ ImagePreProcessor::~ImagePreProcessor(void)
{ {
} }
void ImagePreProcessor::setBkgFrameNum(int frameNum)
{
QMutexLocker locker(&initBgkFrameNumMutex);
_maxBackgroundImageInitTime = frameNum;
}
int ImagePreProcessor::getBkgFrameNum()
{
QMutexLocker locker(&initBgkFrameNumMutex);
return _maxBackgroundImageInitTime;
}
void ImagePreProcessor::init() void ImagePreProcessor::init()
{ {
......
...@@ -86,13 +86,7 @@ private: ...@@ -86,13 +86,7 @@ private:
bool _gaussianBlurEnabled; bool _gaussianBlurEnabled;
bool _resetBackgroundImageEnabled; bool _resetBackgroundImageEnabled;
int _maxBackgroundImageInitTime;
TrackerParameter* _TrackingParameter; TrackerParameter* _TrackingParameter;
cv::BackgroundSubtractor* m_subtractor; cv::BackgroundSubtractor* m_subtractor;
// functions
void setBkgFrameNum(int);
int getBkgFrameNum();
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment