hi,
the principle is here but i don't think convoluate it's a good idea
because it look for a shape who look like and you could be lead in error
like this (see file and jpg) : real max is -1 (1,1) and it found -2 (3,4)
more i don't think a 5*5 scan is good because that merge too much point ...
i don't found formula but try to take a look with topography calculus....
if not, method i suggested you is unstoppable even if it's a little bit nag
Best
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte