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

1 view (last 30 days)
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);
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?

Answers (1)

Dima Lisin
Dima Lisin on 17 Feb 2016
You need the intrinsics too.


Find more on MATLAB Support Package for USB Webcams in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!