[問題] entropy function的作用對象可以是哪些??已回收
請問一下 MATLAB 的 entropy function 可以作用在哪些上面
我按F1 HELP 查詢
E = entropy(I) returns E, a scalar value representing the entropy of
grayscale image I. Entropy is a statistical measure of randomness that can be
used to characterize the texture of the input image. Entropy is defined as
-sum(p.*log2(p))
他只可以作用在灰階圖像上面嗎??
我可以把它作用在自訂的矩陣上面嗎
例如 :
a = [1,1,1,1];
b = [1,2,3,4];
J = entropy(a)
R = entropy(b)
J 出來是0 沒問題
R 出來也是0 可是如果造entropy的定義下去 自己手動算 出來應該不是0
所以才有這個疑問
請高手幫忙解答 感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.71.11.199
推
09/11 16:33, , 1F
09/11 16:33, 1F