I am looking for a code that could be used to calculate information entropy of the image that is attached in this message ( https://i.sstatic.net/ahdk6.jpg ). I googled potential answers to this question and found some description of how to do this (e.g. http://uk.mathworks.com/help/images/ref/entropy.html). However, this did not work for me and the image in question. I would really appreciate anyone's help because I am not that skilled in Matlab.
Thanks and best wishes,
Dario
You can do it pretty simply in the Terminal at the command-line with ImageMagick which is installed on most Linux distros and is available for OSX and Windows.
So, you run:
convert image.jpg -print '%[entropy]\n' null:
0.302578