Homogenity of an image

15 views (last 30 days)
Sepp
Sepp on 29 Apr 2014
Commented: Image Analyst on 30 Jan 2016
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?

Accepted Answer

Image Analyst
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
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.
Sepp
Sepp on 30 Apr 2014
Thank you very much.

Sign in to comment.

More Answers (2)

keerthana ganeshan
keerthana ganeshan on 30 Jan 2016
WHAT IS HOMOGENITY IN IMAGE?

ahmed
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
Image Analyst
Image Analyst on 3 Dec 2014
What formula did you use? Why not just multiply by 1e20 or something?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!