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

조회 수: 2 (최근 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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB 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