Similarity transformation algorithm from ECCV paper

Change-Id: I75ef0a4bdca8ba9adf0f17a74628f9ae7e5b54e4
Merge "Similarity transformation algorithm from ECCV paper"