Python Forum
How to measure an inclined beam width and height in image using python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to measure an inclined beam width and height in image using python?
#1

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?
Reply
#2
If you know the angle, you can rotate by this angle.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  measure diameter of complex structure alminnawi 0 184 Apr-18-2024, 10:20 AM
Last Post: alminnawi
  Python code to set column width 1418 11 1,248 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Fixed colum width for rowLabels i Matplotlib pandabay 0 428 Jun-10-2023, 03:40 PM
Last Post: pandabay
  Upload image to Instagram using python/selenium using image URL failed, need help greenpine 5 5,491 Feb-22-2022, 09:42 PM
Last Post: snippsat
  width of Unicode character Skaperen 6 2,742 Sep-27-2021, 12:41 AM
Last Post: Skaperen
  How to measure execution time of a multithread loop spacedog 2 2,898 Apr-24-2021, 07:52 AM
Last Post: spacedog
  image.thumbnail(width, height) not working PCesarano 2 3,447 Apr-08-2021, 06:09 PM
Last Post: PCesarano
  PIL Image / python-resize-image AttributeError sallyjc81 1 5,018 Aug-02-2020, 12:06 AM
Last Post: scidam
  Define unit of measure of a number doug2019 3 2,398 Oct-15-2019, 03:43 PM
Last Post: jefsummers
  Applying row height to all rows including and after row 7 curranjohn46 2 6,598 Oct-14-2019, 03:10 PM
Last Post: curranjohn46

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020