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

Replace std::shared_ptr<cv::Mat> with cv::Mat

cv::Mat is already reference counted.
parent 9d22204a
No related branches found
No related tags found
No related merge requests found
Pipeline #51240 passed
...@@ -45,7 +45,7 @@ private: ...@@ -45,7 +45,7 @@ private:
virtual void connectInterfaces(); virtual void connectInterfaces();
Q_SIGNALS: Q_SIGNALS:
void emitCvMat(std::shared_ptr<cv::Mat> mat, QString name); void emitCvMat(cv::Mat mat, QString name);
/** /**
* Will be sent when tracking is doen to multiple components of the core * Will be sent when tracking is doen to multiple components of the core
* app An example is the visualisation which is then updated * app An example is the visualisation which is then updated
...@@ -55,8 +55,8 @@ Q_SIGNALS: ...@@ -55,8 +55,8 @@ Q_SIGNALS:
void emitCorePermission(std::pair<ENUMS::COREPERMISSIONS, bool>); void emitCorePermission(std::pair<ENUMS::COREPERMISSIONS, bool>);
public Q_SLOTS: public Q_SLOTS:
virtual void receiveCurrentFrameFromMainApp(std::shared_ptr<cv::Mat> mat, virtual void receiveCurrentFrameFromMainApp(cv::Mat mat,
uint frameNumber) = 0; uint frameNumber) = 0;
/** /**
* Recieves area descriptor data for rectification (px to cm) and for * Recieves area descriptor data for rectification (px to cm) and for
* tracking arena boundary * tracking arena boundary
...@@ -64,7 +64,7 @@ public Q_SLOTS: ...@@ -64,7 +64,7 @@ public Q_SLOTS:
virtual void receiveAreaDescriptor(IModelAreaDescriptor* areaDescr); virtual void receiveAreaDescriptor(IModelAreaDescriptor* areaDescr);
// private Q_SLOTS: // private Q_SLOTS:
// virtual void receiveCvMatFromController(std::shared_ptr<cv::Mat> mat, // virtual void receiveCvMatFromController(cv::Mat mat,
// QString name) = 0; // QString name) = 0;
}; };
......
...@@ -9,8 +9,7 @@ class BT_INTERFACES_API IModelTrackingAlgorithm : public IModel ...@@ -9,8 +9,7 @@ class BT_INTERFACES_API IModelTrackingAlgorithm : public IModel
public: public:
IModelTrackingAlgorithm(QObject* parent = 0); IModelTrackingAlgorithm(QObject* parent = 0);
virtual void doTracking(std::shared_ptr<cv::Mat> image, virtual void doTracking(cv::Mat image, uint frameNumber) = 0;
uint frameNumber) = 0;
signals: signals:
void emitTrackingDone(); void emitTrackingDone();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment