我必须将此for循环的Rotation_flir(矩阵类型)的所有输出存储在一个数组中,我尝试了几种方法来完成工作,有人可以帮我解决这个问题。
谢谢
我的代码
for cidx,camera in enumerate(ch_rgb.cameras):
#print(ch_rgb.cameras)
d = ch_rgb.crs.project(ch_rgb.transform.matrix.mulp(camera.center))
#print(camera.center)
T = ch_rgb.transform.matrix
# print('flir-',T)
m = ch_rgb.crs.localframe(T.mulp(camera.center)) #transformation matrix to the LSE coordinates in
the given point
R = (m * T * camera.transform * Metashape.Matrix().Diag([1, -1, -1, 1])).rotation()
# print (m)
estimated_ypr_rgb = Metashape.utils.mat2opk(R)
# print('RGB-' ,estimated_ypr_rgb)
Rotation_flir= R * rotation_matrix
print(Rotation_flir)
'