How do I calculate a threshold from one ROI and calculate a mean from a larger ROI that only takes into account pixels above this threshold?

1 view (last 30 days)
I've never coded a Matlab program to analyze images so I'm having some trouble with this. What I'd like to do is take the mean brightness/intensity of a small region of interest, set a threshold 2 SD below this mean, and then find the mean of a larger region of interest only taking into account the values above threshold. Could anyone help me with this?

Answers (1)

Image Analyst
Image Analyst on 22 Jul 2014
See attached code to produce this:
  4 Comments
Image Analyst
Image Analyst on 26 Jul 2014
Roshimi, haven't heard back from you. Did my answer solve your question? Or are you still unable to do what you want to do?
Roshmi
Roshmi on 31 Jul 2014
Hey! I haven't worked with Matlab in several years, so I'm trying to relearn everything. I'll watch your image segmentation tutorial though and see how it goes. Thanks for your help!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!