Update registration example2

Change-Id: Ie3d1faed9489303be8a385c30cdd14515bc629f6
Fix metric type created for correlation metric

Change-Id: I8c53fd0b9c8f74007b7a7120cd0d951b2945eef5