code for calculating image entropy
-
python code is under
python
folder -
c++ code is under
c++
folder -
test images are under
imgs
folder
It contains the basic code for 1-D image entropy.
It contains the basic code for 2-D image entropy.The code will run very slowly,it is kept just for beginners to learn the basic principles and metholds.Remember DO NOT use it for practical circumstance.
It contains optimized code for better performance.And it is very recommanded to use it in practical circumstance.
It is the same with entropy2dSpeedUp.py
,I just add some time evaluating code into it.
I write the code for calculating Fij with my algorithm in this file.The performance is a little slower than entropy2dSpeedUp.py
.But the algorithm is very useful in c++ codes.
The whole project is arranged by CMake. So if you want to run it,you must have a CMake environment on your computer.The only dependce library is OpenCV.The exe file is under cmake-build-debug
folder,name is entropy2d
.
After many tests,C++ project has a best performance,which is shown as below.
So if you can satisify the requirements for c++ project mentioned above,it's best to use it.If not, you can choose the python code entropy2dSpeedUp.py
,it will provide almost the greatest performance.
Last but not least,if you have any thing to say, don't forget to open an issue or connect me.