Page 1 of 1

Compute Geometric Features - k-sized nearest neighbours

Posted: Mon Apr 04, 2022 11:18 pm
by adthoms
Hello,

Currently, geometric features are calculated using a 'Local neighborhood radius'. Are there any plans to extend these calculations to a k-sized nearest neighbours search?

AT

Re: Compute Geometric Features - k-sized nearest neighbours

Posted: Wed Apr 06, 2022 8:27 pm
by daniel
Ah, not particularly... I could still add that to the TODO list, but you would need to wait/find a motivated developer to do it...

Re: Compute Geometric Features - k-sized nearest neighbours

Posted: Sat Sep 10, 2022 9:23 am
by DadoooR3
Hello,
If it existed, I would also like to work with a defined number of k-nearest neighbors in a given radius. This would be very useful when working with multi-scale detection and would probably reduce the computation time (200 - 400 mio points).

I am also looking for a tool that allows me to compute Statistic features (like mean, standard deviation, medoid) as it is done for Geometric Features. I haven't found a tool to do that yet.

Thanks for reading

DR

Re: Compute Geometric Features - k-sized nearest neighbours

Posted: Tue Sep 13, 2022 6:45 am
by daniel
Ah, sadly we don't have a routine to extract a neighborhood with the 2 constraints (radius AND knn). This is not impossible to add, but it's clearly a much bigger chunk of work (especially since not a lot of people will dare change this part of the code apart myself - even if they shouldn't be shy :D).

Adding ways to compute the local average and std. dev. would be easy however. I'll add this to the TODO list.

For the medoid, I guess this is where having a maximum number of points would save a lot of time?

Re: Compute Geometric Features - k-sized nearest neighbours

Posted: Tue Sep 27, 2022 6:38 pm
by DadoooR3
Thank you for your answer.

I recognize that my first request with 2 conditions is not simple to achieve if one wants to remain efficient. I've been thinking for quite some time about how to get around this problem, for example by using octree levels (one representative per cell, working with the n³ closest cells (for example 5X5X5 = 125 cells around point)

For the mean and standard deviation it is very nice to add it in the list of todo's.

Concerning the medoid, i assume that it is possible to use it in many cases. Not only to increase the speed of processing (I often work with 400 - 500 mPts) but it is certainly quite effective to help in locating geometric singularities (edges ...)

Re: Compute Geometric Features - k-sized nearest neighbours

Posted: Wed Sep 28, 2022 7:43 pm
by daniel
My point about the medoid was that it's really inefficient to compute on a large neighborhood, hence the need to cap the number of neighbors ;)