Python Forum
How to measure an inclined beam width and height in image using python? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to measure an inclined beam width and height in image using python? (/thread-6111.html)



How to measure an inclined beam width and height in image using python? - zyb1003 - Nov-06-2017


Hello guys,

Now I have a beam greyscale image, the beam is not straight but inclined. If the beam is straight, I can calculate the sum of all rows and column's pixel greyscale value, then choose the row or column with the largest sum, and then find out how many pixels' greyscale value are over 170, then find out the width and height of the beam.

However, now that the beam is inclined, what can we do to measure the size of the beam?


RE: How to measure an inclined beam width and height in image using python? - heiner55 - Nov-07-2017

If you know the angle, you can rotate by this angle.