Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: Phogi on December 02, 2019, 09:46:52 AM
-
Hello everyone,
I have tried two different ways to project marker to the image plane, and I searched in the forum to find two ways:
(1)
marker = chunk.markers[0]
x0, y0 = marker.projections[camera].coord
(2)
camera.project(chunk.markers[0].position)
Method (1) returns Vector([2046.1069456339237, 1142.9500712869672]), while method 2 returns (2046.3900146484375, 1143.6800537109375).
Since both starts from estimated values, I am expecting they are the same, but they are different. Could someone explain why there's difference? Or if I should compare the integer but the Y has about 1 pixel difference...
Thanks a lot!
-
Hello Phogi,
Which reprojection error is observed for this marker on the given image, if you use Show Info command from the marker's context menu? Does the value corresponds to the difference between the reprojected coordinates (2) and the 2D projection of the marker (1)?