MATLAB Answers

0

How do I measure the conversion between pixels to cm from an image?

Asked by Riccardo Consolo on 13 Jul 2018 at 20:37
Latest activity Answered by Image Analyst
on 14 Jul 2018 at 14:42

I have a picture that includes part of a ruler. I want to measure the length of the ruler by tracing a line on the image and see how many pixels correspond to the length of it. How do I trace a line on the picture manually after it is already displayed and save the length in pixels? I can easily do the conversion once I have the length in pixels, but I don't know the function to trace the line.

Thank you.

  1 Comment

You mean like the imdistline function?

Sign in to comment.

1 Answer

Answer by Image Analyst
on 14 Jul 2018 at 14:42

Run my attached spatial calibration demo. It will show you exactly what to do.

  0 Comments

Sign in to comment.