1
Python and Java API / Correct use of selectMaskedPoints in python
« on: March 02, 2021, 09:16:21 PM »
Hi there,
I want to filter my dense point cloud with some masks (by file).
The entire workflow with adding masks before depth map & dense creation works, but I would like to create the dense cloud first.
As far as I understood, the process is to select points by mask and then export those.
I'm trying to use the method
with camera being
However, this gets me the following error:
Giving the argument of the dense cloud (object?) (chunk.dense_cloud) obviously returns
TypeError: selectMaskedPoints() missing required argument 'cameras' (pos 1)
Could you give me some pointers into the right direction?
Thanks!
Chris
I want to filter my dense point cloud with some masks (by file).
The entire workflow with adding masks before depth map & dense creation works, but I would like to create the dense cloud first.
As far as I understood, the process is to select points by mask and then export those.
I'm trying to use the method
Code: [Select]
Metashape.DenseCloud.selectMaskedPoints(camera, softness=4)
with camera being
Code: [Select]
camera = chunk.cameras
However, this gets me the following error:
Code: [Select]
TypeError: descriptor 'selectMaskedPoints' requires a 'Metashape.Metashape.DenseCloud' object but received a 'Metashape.Metashape.Camera'
Giving the argument of the dense cloud (object?) (chunk.dense_cloud) obviously returns
TypeError: selectMaskedPoints() missing required argument 'cameras' (pos 1)
Could you give me some pointers into the right direction?
Thanks!
Chris