Non-maximum
suppression
At q, we have a maximum if the value is larger than those at both p and at r. Interpolate to get these values.
(Forsyth & Ponce)