I am guessing that is the case, especially handing the case where `peak_local_max` excludes the border of the input array