Draw Camera View

Draw the 3D frustum of a camera with an image in it
782 descargas
Actualizado 28 mar 2014

Ver licencia

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();

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Camera Views en Help Center y MATLAB Answers.
Agradecimientos

Inspirado por: plot3axisatorigin

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0