形状训练--对齐到原点
基于ASM人脸特征点定位中,对齐形状模型时需要将形状对齐到原点,其过程如下:
形状定义:x = (x1, x2, ......xn, y1, y2,......,yn)
则原点可表示为:
设:x‘ = 1/n * (x1 + x2 + ......+ xn)
y' = 1/n * (y1 + y1 +......+ yn)
X(origin) = (x', x', ...... x', y', y',......y')
对齐到原点:
x(new) = (x1 - x', x2 - x', ......, xn - x', y1 - y', y2 - y', ......, yn - y')