Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hellO everyone..i am no doing a project in image processing...
i have done it to some extent..
some body help me in finding code for generating the value of entropy of an gray scale image..
please..
Posted
Updated 20-Nov-13 17:23pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Aug-13 11:55am    
To what extent? What's the particular problem?
—SA
me.sanobabu1 13-Aug-13 3:40am    
i want to calculate entropy of an image..
MCY 15-Aug-13 9:17am    
that is not a "problem", that is a "project". What fails to work in your code?
me.sanobabu1 15-Aug-13 23:32pm    
i still dont have code.. can u suggest me.
Dave Kreskowiak 20-Nov-13 17:24pm    
So you want someone to hand you their code? Sorry, but that's not how the world works.

1 solution

you must first calculate Nr that describe count of pixel in each gray level
then you must use the Entropy farmmula

Entropy(img)=sum(Nr * log2(Nr))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900