Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: aphextwin on January 31, 2013, 06:46:03 PM

Title: Gradual Selection
Post by: aphextwin on January 31, 2013, 06:46:03 PM
Is it possible to perform a gradual selection on a mesh with python? I couldn?t find something in the reference :-/
Title: Re: Gradual Selection
Post by: alainfx on January 20, 2014, 01:54:53 PM
Hi,

Same question here.

We use multi-frame chunks.
For a single frame, we can manually use this to clean geometry :
-Edit-->Gradual Selection-->Connected component size-->Level 95%
-Delete selected.

But we have a lot of frames, it would be very tedious to do it manually.
Is there a way to use python for this ?

Thanks.
Title: Re: Gradual Selection
Post by: Alexey Pasumansky on January 20, 2014, 02:04:31 PM
Hello,

Unfortunately, such options are not yet supported.

Title: Re: Gradual Selection
Post by: alainfx on January 20, 2014, 02:26:01 PM
Thanks.

Arggll, 1500 frames by hand (1 minute of final movie)...

Title: Re: Gradual Selection
Post by: Alexey Pasumansky on January 20, 2014, 07:05:39 PM
Hello alainfx,

Probably, we will implement the access to connected components filtering via Python in the upcoming update. However, there will be a max number of faces in the component and not percentage as an argument.
Title: Re: Gradual Selection
Post by: alainfx on January 21, 2014, 01:13:37 PM
Thanks !
Title: Re: Gradual Selection
Post by: Alexey Pasumansky on January 21, 2014, 07:23:25 PM
Hello alainfx,

Please check the new build 1812 and chunk.model.removeComponents() method. As argument it should be given threshold number of faces for the connected components.
Title: Re: Gradual Selection
Post by: alainfx on January 21, 2014, 08:57:08 PM
Excellent, thanks !