Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rygo6

Pages: [1]
1
Python and Java API / Running matchPhotos and alignCameras twice?
« on: April 24, 2019, 01:52:19 AM »
Inside the Metashape GUI I find that sometimes just running "Match Photos" twice automatically improves things. That being without the 'reset' checkbox checked. Was curious to know how I replicate that in the python scripting, as documentation seems kind of ambiguous about this.

Would I go:

chunk.matchPhotos(accuracy=Metashape.HighestAccuracy, preselection=Metashape.GenericPreselection, filter_mask=False, keypoint_limit=0, tiepoint_limit=0)
chunk.alignCameras()
chunk.matchPhotos(accuracy=Metashape.HighestAccuracy, preselection=Metashape.GenericPreselection, filter_mask=False, keypoint_limit=0, tiepoint_limit=0)
chunk.alignCameras()

Or would I go:

chunk.matchPhotos(accuracy=Metashape.HighestAccuracy, preselection=Metashape.GenericPreselection, filter_mask=False, keypoint_limit=0, tiepoint_limit=0)
chunk.alignCameras()
chunk.alignCameras()

?

I can't tell if running the operation twice through the editor is running both matchPhotos and alignCameras twice, or if matchPhotos only runs once, then alignCameras gets run twice.

Also how good or bad is it to leave keypoint and tiepoint limit to 0? Someone told me it's best to do that in photoscan, is that still true in Metashape?

Pages: [1]