Effacer les filtres
Effacer les filtres

how to reach amount of entropy of image in between the range [0,1] ?

2 vues (au cours des 30 derniers jours)
fred bnm
fred bnm le 1 Juil 2016
Commenté : fred bnm le 1 Juil 2016
Hi, Usually the amount of entropy is between the range [0,1]. but after run
E = entropy(I)
E is a scalar value representing the entropy of grayscale image I that E>1.i want E between [0,1]. please guide me or suggest an another function.

Réponse acceptée

Thorsten
Thorsten le 1 Juil 2016
You can scale the output by the maximum entropy for this image
H = entropy(I);
N = numel(I);
maxH = entropy([1:N]/N);
Hscaled = H/maxH;
  3 commentaires
Thorsten
Thorsten le 1 Juil 2016
If it's double, the values have to be in the range [0,1], and if its unit8, the values have to be in the range [0, 255], as far as I understood.
fred bnm
fred bnm le 1 Juil 2016
N is number of element in matrix.i cant understand the maxH.please explain more.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by