# Curve interpolation

Hi,

I want to automatically detect lateral maxima and minima on this image :

Like you can see, I already detect this points. However, the detection precision is about a pixel. I want to make the detection more precise. Thus, I thought to interpolate the curves in order to obtain continuous points and be more precise. Does anyone an idea to make that on OpenCV, in C++ ?

Thanks for any help,

edit retag close merge delete

In any case, you can draw/approximate the curve as a series of line function calls. The smaller the lines the better.