ROI Image Processing -- Approach Question
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I currently have images of the following nature:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166948/image.jpeg)
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!
0 件のコメント
採用された回答
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');
See my Image Segmentation Tutorial for a full demo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
4 件のコメント
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!