15
« on: March 05, 2019, 10:54:52 PM »
1-
I see the code:
chunk = Metashape.app.document.chunk
threshold = 2
f = Metashape.PointCloud.Filter()
f.init(chunk, criterion = Metashape.PointCloud.Filter.ImageCount)
f.selectPoints(threshold)
#f.removePoints(threshold)
What does f.removePoints(threshold) do ? Do I need the line to actually remove the points?
2-
I want to add an additional criterion
threshold = 2
f = Metashape.PointCloud.Filter()
f.init(chunk, criterion = Metashape.PointCloud.Filter.ImageCount)
f.selectPoints(threshold)
f.removePoints(threshold)
f1 = Metashape.PointCloud.Filter()
f1.init(chunk, PhotoScan.PointCloud.Filter.ReconstructionUncertainty)
f1.selectPoints(10.1)
f1.removePoints(10.1)
f2 = Metashape.PointCloud.Filter()
f2.init(chunk, PhotoScan.PointCloud.Filter.ReprojectionError)
f2.selectPoints(0.5)
f2.removePoints(0.5)
f3 = Metashape.PointCloud.Filter()
f3.init(chunk, PhotoScan.PointCloud.Filter.ProjectionAccuracy)
f3.selectPoints(8.0)
f3.removePoints(8.0)
Would the above apply the four filters to the point cloud data?
Can you please correct where things are wrong?
Thanks,
Patrick