MATLAB Answers

How to get the camera scale factor

7 views (last 30 days)
chihyu
chihyu on 14 Oct 2021
Commented: chihyu on 15 Oct 2021
I want to obtain the scale factor by calibration, so as to obtain the relationship between the length of the object in the image and the actual length.
However, when I complete the calibration, I can get the intrinsic and extrinsic parameters, but it seems that I still lack some information (distance between the sensor plane and lens center) to get the scale factor.
Please also provide suggestions from professionals in this area, thank you.

Accepted Answer

Matt J
Matt J on 14 Oct 2021
Edited: Matt J on 14 Oct 2021
To get that, you need to image an object of known length at some known reference depth from the camera. You would also need to know the depth of any object you later wished to apply it to.
  1 Comment
chihyu
chihyu on 15 Oct 2021
Dear Matt, what do you mean is that if my subject is a 15 cm ruler (I know the exact length), then how many pixels does the length of the subject occupies in the captured image.
Then calculate the pixel/ unit length, but how do I get the reference depth from the camera

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!