diff --git a/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.cpp b/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.cpp index 06497ef219e4efc258ae805a941e6cbeb65d151e..3a52f7a23996f5707fd6caff2a00f9974d24c4ba 100644 --- a/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.cpp +++ b/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.cpp @@ -7,12 +7,9 @@ #include "CustomBackgroundSubtractor.h" QMutex bgsMutex; -QMutex oriImageMutex; -QMutex initBgkFrameNumMutex; ImagePreProcessor::ImagePreProcessor(TrackerParameter* p_TrackingParameter) : - _maxBackgroundImageInitTime(0) - , m_subtractor(new CustomBackgroundSubtractor()) + m_subtractor(new CustomBackgroundSubtractor()) { _TrackingParameter = p_TrackingParameter; init(); @@ -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() { diff --git a/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.h b/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.h index 1cc9417797f9215e6b6ff8e60424ab4691882285..9df20d0499088a3d8cbe13f6cc27a3898940678d 100644 --- a/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.h +++ b/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.h @@ -86,13 +86,7 @@ private: bool _gaussianBlurEnabled; bool _resetBackgroundImageEnabled; - int _maxBackgroundImageInitTime; - TrackerParameter* _TrackingParameter; cv::BackgroundSubtractor* m_subtractor; - - // functions - void setBkgFrameNum(int); - int getBkgFrameNum(); };