필터 지우기
필터 지우기

How to know how many pixels are a millimeter in my image?

조회 수: 11 (최근 30일)
mirko
mirko 2024년 1월 4일
댓글: mirko 2024년 1월 4일
I got some dimensions in pixels from the image below (for example TotalArea=520000 pixels). I need to convert my dimensions from pixel to millimeters. I'm a newbie in matlab and I don't know where to start with this. I've already made the calibration with the Camera Calibrator provided by Matlab and I've obtained two folders:
  • CameraParameters
  • EstimationError
The image is the following:

답변 (1개)

Matt J
Matt J 2024년 1월 4일
You need to know the length in millimeters of a particular object or feature in the image to make that conversion.
  댓글 수: 7
Image Analyst
Image Analyst 2024년 1월 4일
@DGM right. I mentioned shadows and background flattening to him in his other question but he just said I was criticizing his question and he didn't want any more help from me. Too bad. With my 45 years experience designing imaging systems and image analysis software I could have been helpful.
mirko
mirko 2024년 1월 4일
I can't get a better image than this due to limited instrumentation. In the last hours I partially solved my problem. I got from Matlab a length of 34 mm for the external side of the CPU when the real length is 36 mm. I can accept this error. The problem is when I try to get the pins' diameter: Matlab give me a value of 16 mm but it is impossible because the real diameter is 0.9 mm. If you can help me, I can send the code I'm trying

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by