What do I have to put in cameraParameters in order to for showExtrinsics to work?

5 ビュー (過去 30 日間)
Jason
Jason 2016 年 2 月 17 日
コメント済み: Dima Lisin 2016 年 2 月 17 日
Lets say I obtain extrinsic parameters for a camera somewhere else instead of Matlab's camera matlab camera calibration app, but I want to use Matlab to visualize where the camera is in space. A simple code below returns error,
cam = cameraParameters('RotationVectors',om,'TranslationVectors',T);
showExtrinsics(cam,'patternCentric');
Error using showExtrinsics/computeConvexHull (line 180)
Index exceeds matrix dimensions.
Error in showExtrinsics/parseInputs (line 155)
[wpConvHull, offset] = computeConvexHull(camParams);
Error in showExtrinsics (line 95)
[offset, wpConvexHull, extView, highlightIndex, numBoards, hAxes] = ...
What other information are necessary to put in the cameraParameters struct in order to visualize it?

回答 (1 件)

Dima Lisin
Dima Lisin 2016 年 2 月 17 日
You need the intrinsics too.
  2 件のコメント
Jason
Jason 2016 年 2 月 17 日
I tried cam = cameraParameters('RotationVectors',om,'TranslationVectors',T,'IntrinsicMatrix',KK); but it still show the same error. Please advice
Dima Lisin
Dima Lisin 2016 年 2 月 17 日
Can you please post your data?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Support Package for USB Webcams についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by