How do I convert focal length from mm to pixels?

조회 수: 29 (최근 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 CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by