Homogenity of an image
15 ビュー (過去 30 日間)
古いコメントを表示
Hi
I want to calculate the homogenity of images. This can be done directly in Matlab with
homogeneity = graycoprops(graycomatrix(img), 'Homogeneity')
Is that right?
Unfortunately I'm not allowed to use the image processing toolbox. Is there some formula for calculating the homogenity so that I can implement it myself?
Or is the sourcecode of graycomatrix and graycoprops available, so that I just can take it?
0 件のコメント
採用された回答
Image Analyst
2014 年 4 月 29 日
Sure, I'm sure you can find someplace on the internet that has the algorithm.
If you have access to someone's computer who has the Image Processing Toolbox:
>> edit graycomatrix.m
>> edit graycoprops.m
9 件のコメント
Image Analyst
2014 年 4 月 29 日
Probably indexing is faster. How big you make the tiles is up to you but a common method in surface metrology or profilometry is to use a 5 by 5 grid. See standards ASME B46.1 and ISO 4287. I usually like to go a bit more since I like a few more than 25 samples. But I probably wouldn't go more than a 10 by 10 grid. Much more and you'll be approaching simply taking the histogram of the image and that really doesn't tell you about the spatial uniformity.
その他の回答 (2 件)
ahmed
2014 年 12 月 3 日
hi when i compute homogeneity and energy of images the result is very small 1.9^-20 can you help me to normalize these small values ???
1 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!