Re: IDL routine to fill in gaps in line? / Searching IDL routine libraries? [message #74509 is a reply to message #74411] |
Tue, 18 January 2011 10:37  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
On Jan 18, 11:24 am, Robin Wilson <ro...@rtwilson.com> wrote:
> Hi all,
>
> I've recently realised what a wealth of useful code is in the various
> IDL routine libraries available on the internet. However, what I haven't
> found is a very good way of searching them. For example, I would never
> have learnt about the very useful COLLAPSE routine by Marc Buie if he
> hadn't posted about it as a response to one of my questions here.
>
> So, my question is two-fold:
>
> 1. Does anyone know of a routine in any of the IDL user-written
> libraries that fills in gaps in a line on a binary image to make it a
> full and complete line. For example, take in the following input (where
> * is a nonzero element and . is a zero element):
>
> . . * . . .
> . . . . . .
> . . * . . .
> . . . . * .
> . . . . * .
> . . . . * .
>
> And fill in the gaps to make a complete line like:
>
> . . * . . .
> . . * . . .
> . . * * * .
> . . . . * .
> . . . . * .
> . . . . * .
This is an ill-posed problem, as there is more then one
way in which you can connect the points. You should first think
on a more detailed prescription on how you want this to happen.
For instance, this would also be a possible solution:
. . * . . .
. . * . . .
. . * . . .
. . * * * .
. . . . * .
. . . . * .
Ciao,
Paolo
>
> 2. I have a suspicion that the code I need to do the above is out there
> somewhere. Does anyone have any particularly useful tips for searching
> all of the IDL libraries on the internet to find routines you need?
>
> Cheers,
>
> Robin
>
> -------
> PhD Student
> University of Southampton, UK
|
|
|