title: Find sinusoidal lines via RANSAC
body: <p>I have a set of points that I need to group using their vicinity to the respective sinusoidal lines. I tried to determine the lines using a standard Hough transform, but that doesn't solve the problem (only a few lines are detected). </p>
  
  <p>I'd like to test if RANSAC would work better to detect the various sin curves. Do you have an example for a similar algorithm? </p>
  
  <p>I know that RANSAC is not the best tool to find multiple lines, so what I would do is a) find the function fitting most points; b) iterate the search, considering only the remaining ones.</p>
  
  <p><img src="https://i.stack.imgur.com/Q1Gw3.png" alt="enter image description here"></p>