ROI Image Processing -- Approach Question

1 次查看(过去 30 天)
Hello,
I currently have images of the following nature:
The goal is to have the code display the mean value of each of the squares. The position of each square slightly shifts from image to image. The images are stored as 1024 x 1024 matrices (type = double). Any suggestions on what approach to take in this case?
Thank you for your time!

采纳的回答

Image Analyst
Image Analyst 2017-8-29
编辑:Image Analyst 2017-8-29
Use regionprops
binaryImage = grayImage > 2e6;
binaryImage = bwareafilt(binaryImage, [3000, inf]);
labeledImage = bwlabel(binaryImage);
props = regionprops(labeledImage, grayImage, 'MeanIntensity');
  4 个评论
Image Analyst
Image Analyst 2017-8-30
That's a quick question? Threshold selection can be a complicated subject.
You might start out with imbinarize(). If that doesn't work, you might try my triangle thresholding method, attached.
itend
itend 2017-8-30
Didn't mean to be facetious! While working on my current set of problems, I am very quickly beginning to appreciate that ><
imbinarize seemed to do the trick!
Thank you!!!

请先登录,再进行评论。

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by