How can I set cameraParameters?

1 回表示 (過去 30 日間)
Bowen Xiao
Bowen Xiao 2020 年 11 月 14 日
回答済み: Uday Pradhan 2020 年 11 月 15 日
RotationMatrices = [1 1 1;1 1 1;1 1 1];
TranslationVectors=[1 1 1];
cameraParams = cameraParameters('RotationMatrices',RotationMatrices,'TranslationVectors',TranslationVectors);
When I want to run this code, there is an error: RotationMatrices are not in the parameter list .
However, the cameraParameters function's web page has this property.
I can only set TranslationVectors and RotationVectors, but I don't know how to transfer them.

回答 (1 件)

Uday Pradhan
Uday Pradhan 2020 年 11 月 15 日
Hi Bowen,
The RotationMatrices is a read - only property and cannot be set in the manner you are expecting. I think this answer will make it more clear as to how you may find a workaround: link. Hope this helps!

カテゴリ

Help Center および File ExchangeComputer Vision Toolbox についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by