I find a parse error in this following MATLAB code.
조회 수: 1 (최근 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!