From d636a68bea32efad22c054a8455a1fc5561c3235 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <mm@ucw.sh> Date: Fri, 12 Nov 2021 17:24:07 +0100 Subject: [PATCH] Cleanup --- .../preprocessor/ImagePreProcessor.cpp | 17 +---------------- .../preprocessor/ImagePreProcessor.h | 6 ------ 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.cpp b/Src/Model/TrackingAlgorithm/imageProcessor/preprocessor/ImagePreProcessor.cpp index 06497ef..3a52f7a 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 1cc9417..9df20d0 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(); }; -- GitLab