OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Automatically select the Region of Interest in Python

  • Thread starter Thread starter CosmeticMichu
  • Start date Start date
C

CosmeticMichu

Guest
I'm working on an optics project and I need to extract the region of interest (ROI) given a set of photos which consists of 32 photos of a square being rotated. I found a way to find a region of interest by calculating the variance of the whole set of photos, as shown below

enter image description here

But now I need a method to actually extract it and work only with that region to calculate the mean intensity of pixels in that region. It would be nice if there is a way to say to Python "just get all the values of the pixels inside the region delimited by this darker line" but I haven't been able to find how to do so. I found some implementations using OpenCV but it needs user interaction, and I want to avoid that part the most. Also note that this is not a perfect circle, so I have no problem with working with a smaller circular region -automatically selected by the program-, but if there is a way to avoid that as well, it would be nice.

Do you have any suggestions? Documentation, articles, examples, some library, some algorithm to be implemented by myself, some Machine Learning method/algorithm (this would be very nice) to identify and extract the region? something that, based on your experience, could do this work.
<p>I'm working on an optics project and I need to extract the region of interest (ROI) given a set of photos which consists of 32 photos of a square being rotated. I found a way to find a region of interest by calculating the variance of the whole set of photos, as shown below</p>
<p><a href="https://i.sstatic.net/e8clLKvI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e8clLKvI.png" alt="enter image description here" /></a></p>
<p>But now I need a method to actually extract it and work only with that region to calculate the mean intensity of pixels in that region. It would be nice if there is a way to say to Python "just get all the values of the pixels inside the region delimited by this darker line" but I haven't been able to find how to do so. I found some implementations using OpenCV but it needs user interaction, and I want to avoid that part the most. Also note that this is not a perfect circle, so I have no problem with working with a smaller circular region -automatically selected by the program-, but if there is a way to avoid that as well, it would be nice.</p>
<p>Do you have any suggestions? Documentation, articles, examples, some library, some algorithm to be implemented by myself, some Machine Learning method/algorithm (this would be very nice) to identify and extract the region? something that, based on your experience, could do this work.</p>
 

Latest posts

A
Replies
0
Views
1
Alfredo Augusto Petri
A
Top