How do I convert focal length from mm to pixels?

40 ビュー (過去 30 日間)
Amr
Amr 2011 年 7 月 2 日
回答済み: George Abrahams 2024 年 1 月 23 日
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??

回答 (2 件)

bym
bym 2011 年 7 月 2 日
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)
  3 件のコメント
bym
bym 2011 年 7 月 5 日
no, that is actually an aspect ratio. I saw a web site that actually gave common ccd sizes. I'll try to find it again a post link here
bym
bym 2011 年 7 月 5 日
here is the web site http://www.dpreview.com/learn/?/key=sensor%20sizes
looks like you should be using 6.16 mm

サインインしてコメントする。


George Abrahams
George Abrahams 2024 年 1 月 23 日
Let F be the focal length in mm, be the focal length in pixels, and be the pixel size in mm.
Then, and .
The values for should be available in, or derivable from, the camera's technical specifications.

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by