How do I convert focal length from mm to pixels?
38 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I used the Exif data to determine the focal length of an image. and i get it with measure unit (mm) and in need to convert it to pixels
How do I convert focal length from mm to pixels??
0 Commenti
Risposte (2)
bym
il 2 Lug 2011
Does the Exif data contain the CCD width information? If so, use: focal length in pixels = (image width in pixels) * (focal length in mm) / (CCD width in mm)
George Abrahams
il 23 Gen 2024
Let F be the focal length in mm,
be the focal length in pixels, and
be the pixel size in mm.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597751/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597756/image.png)
Then,
and
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597761/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597766/image.png)
The values for
should be available in, or derivable from, the camera's technical specifications.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597771/image.png)
0 Commenti
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!