Homogenity of an image
15 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Image Analyst
on 29 Apr 2014
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 Comments
Image Analyst
on 29 Apr 2014
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.
More Answers (2)
ahmed
on 3 Dec 2014
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 Comment
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!