Hi Alexey,
One more question, If I only wanted to orthorectify a subset of images in the project, is that possible through a python script? Right now all of the images in the project are in 1 chunk, the only ways to differentiate between them is that the images I want to orthorectify are named something like 9999_999.tif and are not georeferenced, while the ones I don't need to orthorectify are named DSC_9999.tif and are georeferenced.
My script is below if that helps.
Thanks for all your help,
Lauren
#!/usr/bin/python
import PhotoScan
import os
import time
import glob
project_mask = "/Volumes/mask.psx" # link to existing mask to use
old_photos_path = "/Volumes/data/" # path to old photos
save_path = "/Volumes/project_" # where to save projects
# open existing mask
doc = PhotoScan.app.document
doc.open(project_mask)
chunk = doc.chunk
# go to correct directory, list photos in that directory (for that year)
os.chdir(old_photos_path)
photo_list = glob.glob("*.tif") # list of paths for each tiff
# build model
chunk.addPhotos(photo_list)
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.NoPreselection, filter_mask=True, keypoint_limit=100000, tiepoint_limit=4000)
chunk.alignCameras()
chunk.buildDenseCloud(quality=PhotoScan.MediumQuality)
chunk.buildModel(surface=PhotoScan.Arbitrary, interpolation=PhotoScan.EnabledInterpolation)
chunk.buildUV(mapping=PhotoScan.GenericMapping)
chunk.buildTexture(blending=PhotoScan.MosaicBlending, size=4096)
# orthorectify photos
chunk.exportOrthophotos("/Volumes/ortho_{filename}.tif", projection = chunk.crs)
doc.save(path = save_path+".psx")