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?

2 次查看(过去 30 天)
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?

回答(1 个)

Image Analyst
Image Analyst 2014-7-22
See attached code to produce this:
  4 个评论
Image Analyst
Image Analyst 2014-7-26
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 2014-7-31
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!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by