Draw Camera View
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();
Citation pour cette source
Adina Stoica (2026). Draw Camera View (https://fr.mathworks.com/matlabcentral/fileexchange/46058-draw-camera-view), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : plot3axisatorigin
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
drawCameraView/
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
