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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user