How can I convert pixel coordinate to micrometer in x and y axis in an image?

15 ビュー (過去 30 日間)
engineer
engineer 2018 年 6 月 1 日
コメント済み: Florian Morsch 2018 年 6 月 2 日
Hi everyone I have an image and in the binary image, a single point coordinate is detected as x and y-axis in pixels. However, I actually wanna know the coordinates in micrometer. Would it be possible to get this info from the image? I am thinking that I have to measure something that I know the length of it and then convert it from pixel to micrometer?
Thanks

回答 (2 件)

Florian Morsch
Florian Morsch 2018 年 6 月 1 日
Your idea is correct. Take a reference object from which you know the exact measurements and convert that to the pixel lenght. Note that the picture of the reference object and the object you want to measure should be both taken with a fixed camera under same conditions if possible.
Lets say you have a cube with 10mm side lenght, which is 100 pixel in the image. So now you know that 1 pixel equals 0.1mm. If you now take another image with the camera in the same place, a object with 200 pixel lengh equals 20mm. If you move your camera and/or change some other conditions you might have to measure the reference again.
What you also can do is calibrate your camera with a known pattern (checkerboard for example) and then measure a object. This article might help you with that: https://de.mathworks.com/help/vision/examples/measuring-planar-objects-with-a-calibrated-camera.html

engineer
engineer 2018 年 6 月 1 日
Thanks for your reply. Is there any auto calibration method for image processing?
  1 件のコメント
Florian Morsch
Florian Morsch 2018 年 6 月 2 日
There is the Camera Calibration App in Matlab, its basically the first part in the link i send in my first answer.

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

カテゴリ

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