Forum

Author Topic: Projection error of a marker  (Read 3160 times)

enocsanz

  • Newbie
  • *
  • Posts: 6
    • View Profile
Projection error of a marker
« on: May 11, 2016, 03:03:36 PM »
Hi Alexey,

Could you please help me to get the (mean) projection error (in pix) of a marker?
Just an example is OK.

Thank you very much.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Projection error of a marker
« Reply #1 on: May 11, 2016, 05:02:43 PM »
Hello enocsanz,

To calculate the projection error for marker "marker" on the single image "camera" you can do the following:
Code: [Select]
projection = marker.projections[camera].coord #2D coordinates on the corresponding image of the marker projection (green/blue flag)
reprojection = camera.project(marker.position) #2D coordinates on the corresponding image of reprojected marker position
error = (projection - reprojection).norm() #difference in pixels
So to get the average error you need to loop by every camera where the given marker appears.
Best regards,
Alexey Pasumansky,
Agisoft LLC