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
  Python code to set column width 1418 11 942 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Fixed colum width for rowLabels i Matplotlib pandabay 0 400 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,337 Feb-22-2022, 09:42 PM
Last Post: snippsat
  width of Unicode character Skaperen 6 2,647 Sep-27-2021, 12:41 AM
Last Post: Skaperen
  How to measure execution time of a multithread loop spacedog 2 2,835 Apr-24-2021, 07:52 AM
Last Post: spacedog
  image.thumbnail(width, height) not working PCesarano 2 3,320 Apr-08-2021, 06:09 PM
Last Post: PCesarano
  PIL Image / python-resize-image AttributeError sallyjc81 1 4,902 Aug-02-2020, 12:06 AM
Last Post: scidam
  Define unit of measure of a number doug2019 3 2,344 Oct-15-2019, 03:43 PM
Last Post: jefsummers
  Applying row height to all rows including and after row 7 curranjohn46 2 6,497 Oct-14-2019, 03:10 PM
Last Post: curranjohn46
  How can I get the width of a string in Python? aquerci 14 15,879 May-27-2019, 06:00 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

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