Ask Your Question

Revision history [back]

Frequancy of a sine wave

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.

click to hide/show revision 2
No.2 Revision

updated 2013-07-11 11:51:07 -0600

berak gravatar image

Frequancy Frequency of a sine wave

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.