Forum

Author Topic: “pairs” parameter in matchPhotos() function  (Read 1929 times)

StevenShi

  • Newbie
  • *
  • Posts: 9
    • View Profile
“pairs” parameter in matchPhotos() function
« on: November 03, 2017, 04:19:34 PM »
When I use "pairs" argument in the matchPhotos() function and I define the pairs as list of camera pairs tuple which I want to match.
for example:

Code: [Select]
cameras = chunk.cameras
c_pairs = [(cameras[0],cameras[1]),(cameras[1],cameras[2]),(cameras[2],cameras[3])...]
chunk.matchPhotos(accuracy = PhotoScan.HighAccuracy,generic_preselection = True,reference_preselection = True,keypoint_limit=40000,tiepoint_limit = 4000,pairs=c_pairs)

But the result is that no any photos are aligned,why does it happen? Anything wrong about my operation?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14614
    • View Profile
Re: “pairs” parameter in matchPhotos() function
« Reply #1 on: November 03, 2017, 04:28:13 PM »
Hello StevenShi,

After image matching you need to perform the camera alignment:
Code: [Select]
chunk.alignCameras()
Best regards,
Alexey Pasumansky,
Agisoft LLC