MATLAB Answers

Is there a way to get the numerical values corresponding to a particular section of a histogram?

1 view (last 30 days)
Hi folks,
I'm trying to threshold an image based on a histogram, but I need to eliminate all but a certain part of the histogram. I've attached an image below, with the highlighted part being an example of one I'm interested in. Is there a way to do this?
Thanks in advance

Accepted Answer

Sai Sri Pathuri
Sai Sri Pathuri on 29 May 2020
Edited: Sai Sri Pathuri on 29 May 2020
You may use Data Brushing. After plotting above graph,
  • Go to Tools and select Brush
  • On the plot, select the desired area and right click on it
  • Choose 'Remove unbrushed data'
  2 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!