Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: Reservoirdog on August 03, 2018, 11:05:18 AM

Title: Dense Point Cloud depth map filtering: how to apply "max_neighbors"
Post by: Reservoirdog on August 03, 2018, 11:05:18 AM
Hello Community!

I have a big project with 1028 cameras. In the dense point cloud process, depth map filtering takes a lot of time,
I already aborted at about 16% (after running about 14 hours).

I read the post from Alexey http://www.agisoft.com/forum/index.php?topic=8361.msg39925#msg39925 (http://www.agisoft.com/forum/index.php?topic=8361.msg39925#msg39925)
about using the parameter "max_neighbors = 50" to limit the impact of huge overlaps.
Sure, many cameras of my project have big overlaps, but that's because I don't want any "shadows" of no point information.
It is a church-building consisting of many little gaps, also at the windows. I got the idea of disabling so-called "overview-pictures" but I only have about 10-12 of these in higher altitude.
My question is: How do I use the "max_neighbors" parameter?
I tried putting it in the console, but always get errors like:
Code: [Select]
chunk.buildDenseCloud(max_neighbors = 50)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-985a66c24864> in <module>()
----> 1 chunk.buildDenseCloud(max_neighbors = 50)

NameError: name 'chunk' is not defined

Is there any trick? Or is it only possible to use the parameter in a python script?

thx for any info, best regards, Chris.
Title: Re: Dense Point Cloud depth map filtering: how to apply "max_neighbors"
Post by: Alexey Pasumansky on August 03, 2018, 01:45:45 PM
Hello Reservoirdog,

Are you running the process from the script actually?

If not, then please check the following post that describes, how to set this parameter via GUI using Tweaks dalog:
http://www.agisoft.com/forum/index.php?topic=9294.msg43358#msg43358
Title: Re: Dense Point Cloud depth map filtering: how to apply "max_neighbors"
Post by: Reservoirdog on August 03, 2018, 02:19:45 PM
That's what I was looking for, thx a lot Alexey!