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
  How to produce a CPU load for several seconds, and measure it? Calab 2 1,579 Jun-18-2025, 02:19 AM
Last Post: Plyth
  measure diameter of complex structure alminnawi 0 1,297 Apr-18-2024, 10:20 AM
Last Post: alminnawi
  Python code to set column width 1418 11 12,134 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Fixed colum width for rowLabels i Matplotlib pandabay 0 1,708 Jun-10-2023, 03:40 PM
Last Post: pandabay
  Upload image to Instagram using python/selenium using image URL failed, need help greenpine 5 9,601 Feb-22-2022, 09:42 PM
Last Post: snippsat
  width of Unicode character Skaperen 6 5,120 Sep-27-2021, 12:41 AM
Last Post: Skaperen
  How to measure execution time of a multithread loop spacedog 2 4,816 Apr-24-2021, 07:52 AM
Last Post: spacedog
  image.thumbnail(width, height) not working PCesarano 2 6,309 Apr-08-2021, 06:09 PM
Last Post: PCesarano
  PIL Image / python-resize-image AttributeError sallyjc81 1 8,321 Aug-02-2020, 12:06 AM
Last Post: scidam
  Define unit of measure of a number doug2019 3 3,776 Oct-15-2019, 03:43 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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