Forum

Author Topic: different marker pixel values returned from different api  (Read 1526 times)

Phogi

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
different marker pixel values returned from different api
« 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!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14840
    • View Profile
Re: different marker pixel values returned from different api
« Reply #1 on: December 02, 2019, 03:29:46 PM »
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)?
Best regards,
Alexey Pasumansky,
Agisoft LLC