本文整理汇总了Python中DataManager.DataManager.affined_transe方法的典型用法代码示例。如果您正苦于以下问题:Python DataManager.affined_transe方法的具体用法?Python DataManager.affined_transe怎么用?Python DataManager.affined_transe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager.DataManager
的用法示例。
在下文中一共展示了DataManager.affined_transe方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from DataManager import DataManager [as 别名]
# 或者: from DataManager.DataManager import affined_transe [as 别名]
[7.06796631984648,-4.38102185829192,6.22278141111669],
[0.178522678338307,-8.67996791359482,8.75620888070560]))
his_plate = np.array(([-2.10959285808919,5.80216851622429,12.1308532857920],
[3.22928742294216,5.31937845277729,12.1980502211835],
[-2.20033555295586,10.4584451060142,8.55278602632730],
[3.84144110718245,10.0726330694138,8.21985101331928]))
model_landmarks = sub_1020
by_landmarks = his_1020
by_points = his_plate
navigation_target_temp = np.zeros((4,3))
his_plate_mean = np.mean(his_plate,0)
#----compute the vigid result
index = 0
for by_point in by_points:
navigation_target_temp[index,:] = data.affined_transe(model_landmarks,by_landmarks,by_point)
index += 1
navigation_target_mean = np.mean(navigation_target_temp,0)
navigation_target = his_plate + (navigation_target_mean - his_plate_mean)
print navigation_target