I\'m trying to find the closest local peaks for distance between two peaks and the elevation where r1, r2 are the row numbers of the two peaks and c1,c2
r1, r2
c1,c2