Hi,
I want to automate gradual selection filters. As a start i tried the following code, exactly as written in the python manual:
import Photoscan
doc = PhotoScan.app.document
project_path = "G:\\data\test\\"
project_name = "test"
chunk = PhotoScan.app.document.chunk
treshold = 0.5
f = PhotoScan.Filter.ReprojectionError()
f.init(chunk, criterion = PhotoScan.PointCloud.Filter.ReprojectionError)
f.selectPoints(threshold)
doc.save()
print("Finised")
However, i keep get the message:
AttributeError: type object 'PhotoScan.PointCloud' has no attribute 'Filter'
What is missing?
Thanks