Agisoft Metashape
Agisoft Metashape => General => Topic started by: xabierr on April 28, 2021, 05:22:35 AM
-
As far as I understand, the Reset Region option is currently based on the sparse cloud only. I am trying to align multiple surveys (different times) to the same region extent.
Is there away to select/crop points in the sparse point cloud OR reset the region using a shapefile? If not, is there any workaround?
cheers,
Javier
-
Hello Javier,
Can you please elaborate, what do you mean by resetting region by a shape file? Which information is available in the shape file?
Would it be sufficient to "copy" the bounding box from the active chunk in the project all the other chunks in the same project?
-
Thanks Alexey.
I mean cropping the bounding box extent to a polygon shapefile extent OR cropping the sparse point cloud to the extent of the polygon shapefile.
-
Hello Javier,
The attached script example should crop the tie point cloud based on the single selected polygonal shape.
-
Hi Alexey,
I couldn't get the script to work. I'm running Metashape Pro version 2.0.1.
-
Hi bisenberger,
The script I modified below should work in Metashape 2.0.
Hope it helps!
-
Hi bisenberger,
The script I modified below should work in Metashape 2.0.
Hope it helps!
Thanks Corensia, but I can't get it to work. The script shows up in the Custom menu pull down. I have a shape selected, set to outer boundary, when I run the script it says "No tie points, script aborted".
(https://digital-mapping.net/image_links/clip_tie_points.jpg)
-
Hi bisenberger,
try this modified script. The original was testing on presence of chunk.point_cloud instead of chunk.tie_points
Should run now...
-
Hi bisenberger,
try this modified script. The original was testing on presence of chunk.point_cloud instead of chunk.tie_points
Should run now...
Thanks Paulo, but it removed most of the tie points within the shape. Ended up just adjusting the bounding box using the shape as a reference.
-
Yes bisenberger,
I noticed that also, it seems the multiprocessing.dumy Pool used somehow does not finish the whole tie point selection before cropping...
This multiprocessing approach is over my head, maybe Alexey can help more on this point..
Another way to use is removing the multiprocessing and then t will work correctly but slower....