Re: How to find closest point(s) around a specific point in point cloud?



Ed wrote:
) Wait. Why suggest a linear search of the entire array?
)
) what's wrong with this pseudocode algorithm?
) Given point (P,Q,R)
)
) number of points found = 0
) current distance = 0
) while number of points found < 10
) {
) searcharray=find all points in shell between current distance and
) current distance + 1

Find all points in shell ?
You make it sound as if it's easy, but I don't think it is.
In fact, I think this alone requires a linear search of the array.

) <snip>
)
) That should find things faster. Defining the "find all points in
) shell" function can be tricky since the array in rectilinear but the
) shell is circular.

Even if the shell were rectilinear it would be more than just 'tricky'.
How are you going to find all points that fall inside a given box without
looking at most (if not all) of the points ?


SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.



Relevant Pages

  • Re: How to find closest point(s) around a specific point in point cloud?
    ... current distance = 0 ... Find all points in shell? ... I think this alone requires a linear search of the array. ...
    (comp.programming)
  • Re: bash: Geht nicht als IFS?
    ... ASCII-NUL umgehen kann. ... Wie soll das mit dem Array denn gehen? ... wie man mit der Shell einfach quoten kann. ...
    (de.comp.os.unix.shell)
  • Re: Minimal keywords needed for constructing a full CL system
    ... The one puzzle that baffled me relentlessly at the time, ... It seemed weird and unsatisfying to say that LAMBDA and AREF were ... (as opposed to N, the number of items of the array that is being indexed, e.g. ... simply by doing a linear search and pessimizing the lookup of all items to be ...
    (comp.lang.lisp)
  • Re: Parsing a char array w/fields delimited by /0xA
    ... length strings separated by linefeeds, into an array. ... Key insight: ... This is slightly more standard than your bash extension as zsh ... If you're going to use a shell, do it the shell way, using ...
    (comp.unix.shell)
  • Re: @ARGV array incorrect when calling perl program from system
    ... If there is more than one argument in LIST, or if LIST is an array ... If you need any kind of shell handling, ... If a program's behaviour agrees with it's documentation I consider it a feature. ... Since changing this feature would break many existing Perl programs I strongly doubt it will ever get changed in Perl 5. ...
    (comp.lang.perl.misc)