comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: An algorithm puzzle
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: An algorithm puzzle [message #60916 is a reply to message #60785] Sun, 15 June 2008 20:13 Go to previous message
Y.T. is currently offline  Y.T.
Messages: 25
Registered: December 2004
Junior Member
On Jun 14, 3:48 am, Jelle <p...@bio-vision.nl> wrote:
> David: That is not really fair: I am in the wrong timezone for a 10
> sec reply. Anyway.. Size would be european XL, probably a US L?
>
> I think this should do it:
> d = MORPH_DISTANCE(P)
>
> (Or, if I have my foreground / background wrong)
> d = MORPH_DISTANCE(P, /background)
>
> You will have to decide how distance is calculated using the
> NEIGHBOR_SAMPLING keyword, I think you are after 3, which is
> approximate euclidian distance.
> d = MORPH_DISTANCE(P, neighbor_sampling=3)

Wow - I'm looking for a clever solution and IDL has a built-in. Which
uses a second or something instead of the hour or so I'd been
struggling with.

Thanks for that - the whole group of "morph_" stuff was completely
unknown to me.

(Either of the three neighborhood definitions are probably fine - for
the kinda coarse stuff I've been doing I don't see much difference
between them. I'm going with 3 for now but 1 was giving me perfectly
fine results earlier..)

Thanks again...


Y.T.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JBIU utilities - release 1.0
Next Topic: AVI file with RLE compression

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:32:07 PDT 2025

Total time taken to generate the page: 0.00514 seconds