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.


Messages - aloeb

Pages: [1]
1
Thanks Alexey!

2
Hello,
Using the python API, I'm trying to build a point cloud using masks.

I have 10 photos but only a mask on 2 of them (too hard to make a mask automatically on the others). I import the 2 masks with chunk.generateMasks.
The mask works perfectly on the point cloud if I only use the 2 photos and their mask, but not when I add the other photos.

Is there a way to display on the point cloud only the points that are not masked on photos 1 and 2?

Thanks in advance for your help

3
Python and Java API / Re: How to Transform DEM with Python API?
« on: March 28, 2024, 05:29:54 PM »
Hello,
I have the same problem but I'm not sure how to use the transformRaster() function.
How to find the elevation.key for the DEM that should be subtracted from the active DEM ?
Also, do you have an example with this function (it might help me)

here is my unfinished code :
Code: [Select]
chunk.buildDem(source_data=Metashape.PointCloudData, interpolation=Metashape.DisabledInterpolation)  # first DEM
chunk.elevation.label = "Initial Elevation"
chunk.buildDem(source_data=Metashape.PointCloudData, interpolation=Metashape.Extrapolated, classes=Metashape.Ground) # ground DEM to subtract to the other
chunk.elevation.label = "Ground Elevation"
chunk.elevation = None
chunk.transformRaster(source_data=Metashape.ElevationData, subtract=True, ...)

Pages: [1]