Draw Camera View

버전 1.0.0.0 (6.64 KB) 작성자: Adina Stoica
Draw the 3D frustum of a camera with an image in it
다운로드 수: 779
업데이트 날짜: 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