import numpy as np
from numpy import sin,cos
path="F:/head/C3D(1)/C3D/"
file="1_Take_001.trc"
target_marker_names=["Actor0_LFHD","Actor0_RFHD","Actor0_LBHD","Actor0_RBHD","Actor0_CLAV","Actor0_LSHO","Actor0_RSHO"]
marker_names=["LAH","RAH","LPH","RPH","SJN","LCAJ","RCAJ"]
with open(path+file) as fp:
data=fp.readlines()
print(data)
data_split=[]
for i in range(len(data)):
data_split.append(list(filter(None,data[i].split("\t")))[0:-1])
#print(data_split)
data_markers=[]
for i in range(len(data_split) - 6):
data_maker_line=[]
for j in range(len(target_marker_names)):
for k in range(len(data_split[3])):
if data_split[3][k]==target_marker_names[j]:
print(target_marker_names[j])
alpha=90/180*np.pi
theta=0/180*
标记点坐标仿射变换
最新推荐文章于 2022-10-20 02:22:44 发布
本文介绍了如何使用Python进行标记点的仿射变换。仿射变换是一种在图像处理中常见的几何变换方法,通过该变换可以实现图像的平移、缩放、旋转等操作。文章详细讲解了相关理论,并提供了具体的Python代码示例,帮助读者理解并应用仿射变换。
摘要由CSDN通过智能技术生成