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

Home » Public Forums » archive » Local Maxima of 2D array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Local Maxima of 2D array [message #69489] Tue, 19 January 2010 09:48 Go to previous message
robintw is currently offline  robintw
Messages: 37
Registered: March 2009
Member
Hi,

Another question from me I'm afraid. I'm trying to implement a routine
which needs to be able to calculate the local maxima of a small window
moved across an array. That is, I have a large array and I will need to
move a small 3x3 array across it, each time working out what the maximum
value of that array is and storing its index (or selecting it in some
other way).

I've investigated various methods for doing this, including the dilate
method, but I can't seem to get them to work properly.

Is there any good (as in fast, efficient and elegant) way of doing this,
or will I be reduced to using for loops and lots of IF statements?

Best regards,

Robin
University of Southampton
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: XYOUTS: Variable is undefined: Conversion destination variable.
Next Topic: current directory changes unexpectedly

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

Current Time: Wed Oct 08 19:18:27 PDT 2025

Total time taken to generate the page: 0.00401 seconds