[問題] entropy function的作用對象可以是哪些??已回收

看板MATLAB作者 (magicayu)時間15年前 (2009/06/21 14:23), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
請問一下 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
因為要把值調整在0-1之間 entroy 是用機率下去算的
09/11 16:33, 1F
文章代碼(AID): #1AFT7Cbr (MATLAB)