Identifying and isolating brighter parts in an image

3 views (last 30 days)
Hi everyone,
I need to identify and isolate the brighter parts in the attached image. My problem is that I have to do this operation on a large amount of images, similar to this one, but with different intesities of the brighter parts and of the background. Therefore I wanted to find a way to automate the process, but if I calculate the value of thresholding with graythresh and then use im2bw with it I get too many white parts. I should use a costumed value of thresholding, but that varies depending on the image and I cannot automate the process... Any idea?
Rita
  1 Comment
Andres Fonts
Andres Fonts on 31 Jan 2017
Edited: Andres Fonts on 31 Jan 2017
Hi Ritird, I did some image processing in the past, and I remember to find similar problems.
Have you tried to use edge-detection filters? It may help you. For instance, first you apply an edge detection filter to the image, and then you find the threshold. You may need to play with the threshold and also with the kind of filter (roberts, sobel, kirsh...).
Sorry if this cannot help you!

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 31 Jan 2017
I don't know what identify and isolate means to you. Please clarify. Perhaps it means that you simple threshold and get a binary image. Perhaps you want the centroids. Perhaps you want to crop each blob out into a new, smaller image. I don't know so please tell us.
You might be interested in my Image Processing Tutorial, or my interactive thresholding app in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  2 Comments
Ritird
Ritird on 31 Jan 2017
By identifying and isolating the brighter parts I meant thresholding and getting a binary image where the brighter parts are white and everything else is black.
Image Analyst
Image Analyst on 31 Jan 2017
Then threshold:
binaryImage = grayScaleImage > someThreshold;

Sign in to comment.

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!