title: Image processing - Match curves from one image to another
body: <p>I am doing something similar to this problem: 
  <a href="https://stackoverflow.com/questions/11729699/matching-a-curve-pattern-to-the-edges-of-an-image">Matching a curve pattern to the edges of an image</a></p>
  
  <p>Basically, I have the same curve in two images, but with some affine transform between the two. Here is an example of two images:</p>
  
  <p><img src="https://i.stack.imgur.com/qRk3y.png" alt="enter image description here">
  Image1</p>
  
  <p><img src="https://i.stack.imgur.com/Yb1zQ.png" alt="enter image description here">
  Image2</p>
  
  <p>So in order to get to Image2, you can apply some translation, rotation, scale, etc. to Image1.</p>
  
  <p>Does anyone know how to solve for this transform?</p>
  
  <p>Phase correlation doesn't work because it's not a translation only. Optical flow doesn't work since there's not enough detail to resolve translation, rotation, scale (It's pretty much a binary image). I'm not sure if Hough Transforms will give me good data.</p>