how to reach amount of entropy of image in between the range [0,1] ?
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
Thorsten
2016 年 7 月 1 日
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 件のコメント
Thorsten
2016 年 7 月 1 日
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!