[問題] 請問關於12bits的灰階影像的histgram問題?已回收

看板MATLAB作者 (Moonlight Shadow)時間17年前 (2008/11/27 10:34), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
想請問有沒有很快可以得到12 bits灰階影像的histgram的 方法,我用了imhist好像不行,imhist是不是只能用於8 bits的灰階? 以下是我目前的方法...速度很慢...謝謝... img = fread(fid,[3512 2640],'uint16')'; result = zeros(1,2048); for i = 1 : 2048 result(1,i) = sum(sum(img == (i-1))); end -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.68.183.77
文章代碼(AID): #19BWSqkP (MATLAB)
文章代碼(AID): #19BWSqkP (MATLAB)