I find a parse error in this following MATLAB code.

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
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개)

카테고리

도움말 센터File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 7월 18일

댓글:

2021년 7월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by