summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/include/markerdetector.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_aruco/include/markerdetector.h')
-rw-r--r--ftnoir_tracker_aruco/include/markerdetector.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/ftnoir_tracker_aruco/include/markerdetector.h b/ftnoir_tracker_aruco/include/markerdetector.h
index 35369cea..4d6e7b90 100644
--- a/ftnoir_tracker_aruco/include/markerdetector.h
+++ b/ftnoir_tracker_aruco/include/markerdetector.h
@@ -52,10 +52,13 @@ class ARUCO_EXPORTS MarkerDetector
contour=M.contour;
idx=M.idx;
}
- MarkerCandidate & operator=(const MarkerCandidate &M){
+ MarkerCandidate operator=(const MarkerCandidate &M){
+ if (this == &M)
+ return *this;
(*(Marker*)this)=(*(Marker*)&M);
contour=M.contour;
idx=M.idx;
+ return M;
}
vector<cv::Point> contour;//all the points of its contour
@@ -350,9 +353,5 @@ private:
void draw(cv::Mat out,const std::vector<Marker> &markers );
};
-
-
-
-
-};
+}
#endif