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

Home » Public Forums » archive » Re: Maximum radius of SEARCH2D/SEARCH3D
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: Maximum radius of SEARCH2D/SEARCH3D [message #34728 is a reply to message #34726] Mon, 14 April 2003 14:28 Go to previous messageGo to previous message
Alexander Gro� is currently offline  Alexander Gro�
Messages: 7
Registered: April 2003
Junior Member
|David Fanning" <david@dfanning.com> schrieb im Newsbeitrag
news:MPG.1904ce8036cec863989b50@news.frii.com...
| indices = Search2d(array, x, y)
| s = Size(array, /Dimensions)
| cols = indices MOD s[0]
| rows = indices / s[0]
| radius = Sqrt( (cols - x)^2 + (rows - y)^2)
| goodPixels = Where(radius LT myCircleRadius)
| cols = cols[goodPixels]
| rows = rows[goodPixels]

That's looking much better. Slowly I get behind the tricks of IDL. In the
past I was coding only C, so I am used to write for loops when I wanted to
process all elements of an array. I've learned very much, thanks again.

Unfortunately there's one stupid question left:
How to determine cols, rows and frames for 3D space? :)

| > Thank you very much for sharing your deep insight of IDL. :-)
| I think you have me confused with JD. :-)
Mhh, maybe this was caused due to my social activities this weekend. J/K :)

Alex

_______________________________________

Alexander Gro�
Dipl.-Ing. (BA) f�r Informationstechnik
AlexanderGross@gmx.de
http://www.it99.org/axl
+49 (0) 1 75/ 410 72 68
ICQ# 36765668
_______________________________________
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image Plots
Next Topic: Re: Image Plots

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

Current Time: Sun Oct 12 04:47:41 PDT 2025

Total time taken to generate the page: 2.56093 seconds