MATLAB Answers

How can I meassure the length of a line in pixels?

17 ビュー (過去 30 日間)
Dimitris Anastasiou
Dimitris Anastasiou 2019 年 1 月 3 日
回答済み: Rahul punk 2019 年 2 月 15 日
Hello! I would like to meassure the length of a line in pixels from a specific image. Actually, I know that in "physical world" is 10mm. What I have done until now, was to convert the image into binary format and then try to detect the line by examine all of the bits and some of the neighbours. This way is extremely slow. Any suggestions?
PS. The line that am interested is the blue one on the piece of paper. Also, define a ROI by cropping a frame near the line is not an option because the location of the piece of paper is not fixed. Plus I m interested in an automatic method, not tools from apps such as rulers etc.

  2 件のコメント

Dimitris Anastasiou
Dimitris Anastasiou 2019 年 1 月 4 日
Thanks for the quick response. The thing is that I am interested in an automatic way. I forgot to mention it in the description.

Sign in to comment.


Translated by