A simular question is asked here, if i understood the question right:
How can you estimate the location and orientation of a rigid/affine transformed image, after you have extracted the distance and know that the compared images are simular. I tried estimateRigidTransform, after casting the vector<points> to vector<point2f> but the resulting Mat keeps empty.
Thank you for your help, the Shape context demo can be found here