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

  0 Comments

Sign in to comment.

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

Teshan Rezel
Teshan Rezel on 29 May 2020
Hi Sai, thanks for this! Is there a way to automate this process for a generalised graph, if I know that the points of interest are points of inflection?

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!