【正文】
fman編碼程序進(jìn)行壓縮unzipped = huffdecode(zipped, info)。input argument must be a uint8 vector39。 %將符號(hào)按照出現(xiàn)的概率大小排列symbols = symbols(sortindex)。 f = [sum(f(1:2)) f(3: end)]。endstring = repmat(uint8(0),1,len)。 %非8整數(shù)倍時(shí),最后補(bǔ)pad個(gè)零if pad0 string = [string uint8(zeros(1,pad))]。 code = bitset(code,len+1)。huffcodes = sparse(1,1)。 %顯示原始圖像的行數(shù) = n。bitindex = 1:8。 %開始解碼vector = repmat(uint8(0),1,)。 codeindex = 1。) error(39。clear all。)。for i=1:length(inseq)。endlow_range = [0 high_range(1:length(ps)1)]。 codeword = codeword/ps(idx)。 %六個(gè)符號(hào)出現(xiàn)的概率inseq = (39。endlow = 0。high_range = []。 codeword = 0。The statistic image coding demonstration programAuthor : Chen RenqingInstructor: Wang ZhipengDigital image processing is an emerging technology, with the development of puter hardware, realtime digital image processing has bee possible due to digital image processing algorithms to appear, making it faster and faster processing speed, better for People services .Digital image processing is used by some algorithms puter graphics image processing technology. Digital image processing technology has been in various areas have a relatively wide range of applications. Image processing large amount of information on the processing speed requirement is relatively high. MATLAB powerful puting and graphics display capabilities, so that image processing bees more simple and intuitive. This paper introduces characteristics of MATLAB language and this MATLABbased digital image processing environment, describes how to use the MATLAB Image Processing Toolbox for its digital image processing, and through some examples to illustrate the use of MATLAB Image Processing Toolbox for image processing method. Mainly discusses the use of MATLAB for image enhancement,2numeric image and other image processing technologies.Key words:MATLAB, digital本文主要介紹了數(shù)字圖像統(tǒng)計(jì)編碼的方法以及MATLAB語(yǔ)言的特點(diǎn),基于MATLAB的數(shù)字圖像處理環(huán)境,介紹了如何利用MATLAB及其數(shù)字圖像統(tǒng)計(jì)編碼的方法,并利用MATLAB來實(shí)現(xiàn)數(shù)字圖像統(tǒng)計(jì)編碼。codeword = codewordlow_range(idx)。endacode = low。sbidx = zeros(size(inseq))。]。 codeword = 0。high_range = []。endlow = 0。 %四個(gè)信源符號(hào)出現(xiàn)的概率inseq = (39。endf = f./len。endfunction f=frequency(vector) %函數(shù)frequency計(jì)算各符號(hào)出現(xiàn)的概率if~isa(vector,39。 byte = decode(bitset(code,codeindex),info)。len = length(string)。endlen = length(zipped)。 %顯示原始圖像數(shù)據(jù)長(zhǎng)度 = maxcodelen。 %對(duì)這個(gè)字符串階數(shù)重組,8行,cols列weights = 2.^(0:7)。 if lenmaxcodelen maxcodelen = len。endlen = length(string)。len = 0。 codeword_tmp(index1) = addnode(codeword_tmp(index1), uint8(0))。 %查找概率不為零符號(hào)的下標(biāo)f = f(symbols)。uint839。 %從MAT文件下載到工作空間data = uint8(X)。再在該區(qū)間選擇一個(gè)代表