FUNCTION REFERENCE
showExtrinsics
Plot the calibration patterns and the camera in 3-D.
Plot the calibration patterns and the camera in 3-D.
Syntax
showExtrinsics(params)Syntax
ax = showExtrinsics(params, view, 'HighlightIndex', idx, 'Parent', ax)params is a cameraParameters from estimateCameraParameters. view 'CameraCentric' (default) puts the camera at the origin and each pattern (the rectangle around its WorldPoints, numbered) at [X Y 0]*R + t with that pattern's RotationMatrices and TranslationVectors. 'PatternCentric' puts the pattern at the origin and one numbered camera per pattern, centred at -t*R'. HighlightIndex draws those patterns or cameras in red (patterns more opaque); Parent draws into that axes. Axes are labelled in WorldUnits. ax is the axes used.
Example
w = generateCheckerboardPoints([7 10], 25); c = cameraIntrinsics([800 790], [322 238], [480 640]); r = [0.3 0 0; 0 0.3 0; 0.2 -0.2 0.1]; ip = zeros(54, 2, 3); for k = 1:3, ip(:, :, k) = worldToImage(c, rotationVectorToMatrix(r(k, :)), [-100 -60 500], w); end; params = estimateCameraParameters(ip, w, 'ImageSize', [480 640]); figure; ax = showExtrinsics(params, 'PatternCentric'); numel(get(ax, 'Children')) % 7Differences from MATLAB: the plot uses plain camera/world axes (X right, Y, Z along the optical axis) rather than MATLAB's swapped, reversed-Z layout. Stereo, fisheye and multi-camera parameters and CameraIndex/PatternIndex are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.