How to calculate entropy for 1D?

1 次查看(过去 30 天)
nur aqila
nur aqila 2018-4-20
评论: nur aqila 2018-4-20
Hi, I have 1D data which I got after encoding an image, the data only have value 0 and 1. How can I calculate the entropy of the resulted 1D data? please help me

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-4-20
编辑:KALYAN ACHARJYA 2018-4-20
 % Not for logical data
% Entropy calculation is only for gray or other formats
en=entropy(I);
  1 个评论
nur aqila
nur aqila 2018-4-20
is that means it is impossible for me to calculate entropy for my data ?

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by