1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 03:03:35 +08:00

aruco: use densely packed array for pose computation

allows using Mat and vector<Vec3d> as argument for rvecs, tvecs that are
allocated at once.
This commit is contained in:
Pavel Rojtberg
2015-10-08 18:42:05 +02:00
parent b36d51185f
commit ee61cba9f9
11 changed files with 23 additions and 26 deletions

View File

@@ -194,7 +194,7 @@ int main(int argc, char *argv[]) {
vector< int > ids;
vector< vector< Point2f > > corners, rejected;
vector< Mat > rvecs, tvecs;
vector< Vec3d > rvecs, tvecs;
// detect markers and estimate pose
aruco::detectMarkers(image, dictionary, corners, ids, detectorParams, rejected);