Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: search for ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 582 of 679
Post > Topic >>

Re: search for all local maxima

by Tom Plunket <gamedev@[EMAIL PROTECTED] > Sep 27, 2006 at 11:42 AM

Jean-Marie Epitalon wrote:

> is any known algorithm for searching for all local maxima in a 2D
dataset ?

Perhaps just loop over X and Y and verify that each point is greater
than the values at (X-1, Y-1), (X-1, Y), (X-1, Y+1), (X, Y-1), (X, Y+1),
(X+1, Y-1), (X+1, Y), (X+1, Y+1), for each of those coordinates that are
in the dataset, anyway (e.g. at edges you don't want to compare off the
edge of the dataset).

-tom!

--
 




 3 Posts in Topic:
search for all local maxima
"Jean-Marie Epitalon  2006-09-27 18:38:59 
Re: search for all local maxima
Tom Plunket <gamedev@[  2006-09-27 11:42:46 
Re: search for all local maxima
Christer Ericson <chri  2006-09-28 05:43:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 18 19:48:40 CDT 2008.