25 #ifndef INCLUDED_ImageProcessingThread_h_GUID_307E6652_D346_43B4_291A_5BAAEF4BA909
26 #define INCLUDED_ImageProcessingThread_h_GUID_307E6652_D346_43B4_291A_5BAAEF4BA909
32 #include <opencv2/core/core.hpp>
35 #include <condition_variable>
53 std::int32_t cameraUsecOffset);
71 std::ostream &msg()
const;
73 std::ostream &warn()
const;
81 const std::int32_t cameraUsecOffset_;
84 bool logBlobs_ =
false;
85 std::ofstream blobFile_;
87 enum class NextOp { Waiting, DoFrame, Exit };
89 std::mutex stateMutex_;
90 std::condition_variable stateCondVar_;
91 NextOp next_ = NextOp::Waiting;
96 bool exiting_ =
false;
102 #endif // INCLUDED_ImageProcessingThread_h_GUID_307E6652_D346_43B4_291A_5BAAEF4BA909
void threadAction()
Entry point for the thread dedicated to this object.
void signalExit()
called by TrackerThread
ImageProcessingThread & operator=(ImageProcessingThread &)=delete
non-assignable.
void signalDoFrame()
called by TrackerThread
bool exiting() const
Did we get the exit message?