Transforming 2D image coordinates to 3D world coordinates
Mostra commenti meno recenti
Hey, I'm trying to convrte from 2d image to 3d real world coordinates. The image I attached has the opposite ratio, from 3D to 2D does anyone know how to make the relationship I am looking for?
Risposte (2)
The inversion is not unique, but if you don't care which of the infinite choices there are for the 3D point, one possibility is,
X3d=pinv(P)*[x;y;1];
X3d=X3d(1:3)/X3d(4)
If you have pixel coordinates of a 3D point imaged by two cameras, you can use the triangulate command to triangulate the 3D locations,

Categorie
Scopri di più su Image Segmentation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!