Draw Camera View

版本 1.0.0.0 (6.6 KB) 作者: Adina Stoica
Draw the 3D frustum of a camera with an image in it
790.0 次下载
更新时间 2014/3/28

查看许可证

drawCameraView(img,frust3DPoints): draw a camera frustum and an image into it
Inputs:
* img is the image we want to view
* frust3DPoints are the 3D coordinates of the image plane in the frustum

Run as:
img=imread('image.jpg');
[H,W,~] = size(img);
% Need to know the camera focal length, pan, tilt and roll, optionally can use
% [tilt,roll]=computeTiltAndRoll(imname,flen);
T = findTransformMatrix(W,H,flen,pan,tilt,roll);
frust3DPoints = findFrust3DPoints(W,H,T);
h = drawCameraView(img,frust3DPoints);
% To put the view in a cardinal coordinate system, run:
cardinalCoordSys();

引用格式

Adina Stoica (2024). Draw Camera View (https://www.mathworks.com/matlabcentral/fileexchange/46058-draw-camera-view), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Camera Views 的更多信息
致谢

参考作品: plot3axisatorigin

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0