Trasform focal length from pixel to world unit
조회 수: 17 (최근 30일)
이전 댓글 표시
I done a calibration of my stereo system camera by the toolbox. The output was an object StereoParameters. I seen inside a intrisicMatrix, where the focal length is expressed in pixel. How i can have the focal length in world unit? How i can calculate sx and sy (pixels per world unit in the x and y direction respectively)?
댓글 수: 0
채택된 답변
Dima Lisin
2016년 2월 21일
During camera calibration you can only calculate the ratio of the focal length to the pixel size, i. e. the focal length in pixels. You cannot calculate the focal length in world units and the pixel size separately. The best you can do is look up the pixel size from the manufacturer's spec, and then calculate the focal length in millimeters.
댓글 수: 0
추가 답변 (1개)
George Abrahams
2024년 1월 23일
Hi @dix93. Please see the camera calibration documentation on the intrinsic parameters. The intrinsic matrix has the following elements:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597706/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597711/image.png)
Then, to calculate F, the focal length in world units,
or
, where
is the pixel size in world units.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597716/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597721/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1597726/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Camera Calibration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!