Hi all,
I was looking for a method to find peaks over a 2d array data set (matrix).
I found some topics in old threads but noone seems exactly to help me.
In fact I was looking for something that returns (i,j) indexes of maximums found over a 2d data array (my seeking area=window).
This means that maybe I should consider the derivatives over 2d data (or maybe some 2d surface evaluation for maximums), in order to find peaks that are internal to the matrix area (but not near to the border, because these maximums could belong to peaks that are outside my seeking area).
A little example about the operation that I need to perform:
Given a (row x column) matrix:
0 10 10 0 0 0 0 0
10 5 0 0 0 5 0 0
20 10 0 0 5 10 5 0
30 20 10 0 10 20 10 0
20 10 0 0 10 15 5 0
10 5 0 0 5 5 0 0
0 0 0 0 0 0 0 0
The real peak I want to find is 20 at (3,5) NOT 30 at (3,0), because this could be a false peak coming from a maximum located outside the border of the window.
Ideas are welcomed expecially in LV 7.1 (or LV 8.2.1).
Thanks for your suggestions!
Marco