measure height of object in millimeter

4 ビュー (過去 30 日間)
Walaa
Walaa 2022 年 12 月 3 日
コメント済み: Walaa 2022 年 12 月 3 日
If I have these details (FOV, distance between the object and the lens, object height in pixels), is it possible to measure the object's height in millimetres, provided that I am unable to measure the physical height of the object?

採用された回答

Image Analyst
Image Analyst 2022 年 12 月 3 日
Yes. If you know the FOV (field of view) in mm then you can. Of course you know the size of your image. So the spatial calibration vertically = (FOV in mm) / (num rows in image array)
mmPerPixel = size(imageArray, 1) / FOVinMm
So now, for any arbitrary object height in pixels in your image, it's real world height in mm is
heightInMm = heightInPixels * mmPerPixel
  1 件のコメント
Walaa
Walaa 2022 年 12 月 3 日
Thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by