25 #ifndef INCLUDED_GenericBlobExtractor_h_GUID_0EE9AD0D_FCD3_498A_EF04_19D24185ED6B 26 #define INCLUDED_GenericBlobExtractor_h_GUID_0EE9AD0D_FCD3_498A_EF04_19D24185ED6B 32 #include <opencv2/core/core.hpp> 47 cv::Mat
const &getLatestGrayImage()
const {
return lastGrayImage_; }
48 cv::Mat
const &getDebugThresholdImage();
49 cv::Mat
const &getDebugBlobImage();
51 LedMeasurementVec
const &extractBlobs(cv::Mat
const &grayImage);
52 LedMeasurementVec
const &getLatestMeasurements()
const {
53 return latestMeasurements_;
57 virtual cv::Mat generateDebugThresholdImage_()
const = 0;
58 virtual cv::Mat generateDebugBlobImage_()
const = 0;
59 virtual LedMeasurementVec extractBlobs_() = 0;
63 cv::Mat lastGrayImage_;
64 LedMeasurementVec latestMeasurements_;
66 bool m_debugThresholdImageDirty =
true;
67 cv::Mat m_debugThresholdImage;
69 bool m_debugBlobImageDirty =
true;
70 cv::Mat m_debugBlobImage;
72 using BlobExtractorPtr = std::shared_ptr<GenericBlobExtractor>;
76 #endif // INCLUDED_GenericBlobExtractor_h_GUID_0EE9AD0D_FCD3_498A_EF04_19D24185ED6B The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3