shannon entropy and entropy of grayscale
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can i find the entropy of a gray image without using the "entropy(I)" , "entropy" command? with just codes and arrays?
2 Commenti
Risposta accettata
the cyclist
il 8 Apr 2023
I = imread('image.png');
figure
imagesc(I)
% Using histogram from imhist
p = imhist(I);
p = p/numel(I);
p(p==0) = [];
entropyFromImhist = -sum(p.*log2(p))
% Built-in entropy function
entropy(I)
0 Commenti
Più risposte (1)
埃博拉酱
il 8 Apr 2023
Entropy.m is open source, why don't you just check out its source code?
edit entropy
0 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!