Apologies for the probably very simple question, I'm just getting to grips with OpenCV and image processing in general (steep learning curve!)
I have an image (that can almost be thought of as a sine wave), the top portion of the image is black, and the bottom half of it white (essentially the midline is the sine wave).
What I'm trying to do is work out the amount of peaks and check if there are deformaties in the line, the way I have thought of doing this would be to get the co-ordinates for each of the peaks and troughs of the wave and doing some simple geometry on them to do the checks.
However I cannot see any functions (although I could be blind!) that allow for this type of matching and reporting of points. Would anyone have any suggestions? Its almost a line detection but a wavy line.