How can I define a measure of similarity between two line segments in $\mathbb{R}^2$? I have two segments in $\mathbb{R}^2$ and I would like to define a measure of similarity between the two segments. 
My idea is that I can apply:


*

*a scale transformation $s$ in order to equate the lenghts of the two segments;

*a translation $\mathbf{t}$ in order to equate the center points of the two segments;

*a 2D rotation of an angle $\alpha$ (described by a rotation matrix $\mathbf{R}$) in order to perfectly overlap the two segments.


and then the similarity measure would be based on


*

*the distance of $s$ from 1;

*the magnitude of $t$ (i.e. $\mathbf{t}^T\mathbf{t}$);

*the distance between $\alpha$ and 0 (or between $\mathbf{R}$ and the identity matrix $\mathbf{I}$).


but how to combine the above contributes? In a linear way?
Is there any "classic" measure of similarity already defined?
Edit:
The two segments are oriented so $AB$ and $BA$ are different.
 A: One measure that is sometimes used, especially if the lines get more complicated is the (normal or weak) Fréchet distance (also on wiki) that takes into account the ordering of the points to be traversed on the lines. Also you may also find the answer here useful.
A: This paper describes six different measures, namely:

Hausdorff-distance (HD), Trucco-distance (TD), Modified line segment
  Hausdorff-distance (MHD), Modified perpendicular line segment
  Hausdorff-distance (MPHD), Midpoint-distance (MD), Closest
  point-distance (CD) and our new Straight line-distance function (SD).

WIRTZ, Stefan; PAULUS, Dietrich. Evaluation of established line segment distance functions. Proceedings of the 9th Open German-Russian Workshop on Pattern Recognition and Image Understanding
Dec 1-5, 2014, Koblenz, Germany, 89.
A: I would like to suggest methods in this PPT(https://github.com/yaodi833/traj_similarity):

And I find that TRACLUS is good for engineers
Reference: https://github.com/yaodi833/traj_similarity
