Image is homogenous,white bright.?
4 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153920/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153921/image.png)
Image is homogenous,white bright. can you explain what is homogenous and white bright. I tried
I = imread('circuit.tif');
glcm = graycomatrix(I,'Offset',[2 0]);
stats = graycoprops(glcm,{'contrast','homogeneity'});
I have added input image and i marked the region of interest. I tried bwlabel and extracted the elliptical shape within that red region.I want to check whether the region is
- homogeneous bright white
- inhomogeneous with or without horizontal bands
- inhomogeneous gray
- inhomogeneous gray to black
- inhomogeneous black
How to write a code to distinguish this
0 件のコメント
回答 (1 件)
Image Analyst
2016 年 6 月 15 日
I guess homogeneous and bright white would mean that the image is a uniform gray level of 255 or 65535 depending on if it's an 8 or 16 bit image.
10 件のコメント
Image Analyst
2016 年 7 月 5 日
You need to define some threshold
if std(ROI(:)) > 5 % Or whatever value you want
% It's not homogeneous
else
% It's homogeneous
end
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!