I find a parse error in this following MATLAB code.
2 次查看(过去 30 天)
显示 更早的评论
calibration = ('rms': result(0), 'camera_matrix': result(1).tolist(),
'dist_coefs': result(2).tolist(),
for t = enumerate(result(3))
disp('rotational_vectors':("image" + str(t.c)): t.x.tolist());
end
for t = enumerate(result(4))
disp('translational_vectors': ("image" + str(t.c)): t.x.tolist())
end
for t = enumerate(imageFileNames)
disp('image_files_names': t.c, t.x)
end
); %%%(here I find parse error)
采纳的回答
KSSV
2021-7-18
calibration = struct ;
calibration.rms = result(0) ;
calibration.camera_matrix = result(1).tolist();
calibration.dist_coefs = result(2).tolist() ;
for t = enumerate(result(3))
disp('rotational_vectors':("image" + str(t.c)): t.x.tolist());
end
for t = enumerate(result(4))
disp('translational_vectors': ("image" + str(t.c)): t.x.tolist())
end
for t = enumerate(imageFileNames)
disp('image_files_names': t.c, t.x)
end
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!