
Firstly, you take the value of your highest point and its neighbours (Pa, Pb and Pc). Assuming the three points are equally spaced and bracket the top of the peak, you can solve for the position of the 'true' maximum using:
x = 0.5*(Pa - Pc) / (Pa-2Pb+Pc)
The value of x will range between -0.5 and +0.5, which is relative to your maximum pixel.
Jason Dale. www.visionexperts.co.uk