【正文】
processing,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語言的特點(diǎn),基于MATLAB的數(shù)字圖像處理環(huán)境,介紹了如何利用MATLAB及其數(shù)字圖像統(tǒng)計(jì)編碼的方法,并利用MATLAB來實(shí)現(xiàn)數(shù)字圖像統(tǒng)計(jì)編碼。 endend結(jié)果:codeword = outseq =aefcdbcc總結(jié)這次的課程設(shè)計(jì),讓我對單MATLAB的理論有了更加深入的了解,同時(shí)在具體的制作過程中,我們發(fā)現(xiàn)現(xiàn)在書本上的知識(shí)與實(shí)際的應(yīng)用存在著不小的差距。 codeword = codeword/ps(idx)。 codeword = 0。codeword = codewordlow_range(idx)。symbos = []。endlow_range = [0 high_range(1:length(ps)1)]。high_range = []。endacode = low。high = low+range*high_range(sbidx(i))。for i=1:length(inseq)。endlow = 0。sbidx = zeros(size(inseq))。 %定義high_rangefor k = 1:length(ps)high_range = [high_range sum(ps(1:k))]。)。 %六個(gè)符號出現(xiàn)的概率inseq = (39。]。 %設(shè)置輸出格式symbol = [39。 endend4 測試和調(diào)試 Huffman編碼實(shí)現(xiàn)的效果另外對“woman”進(jìn)行上述實(shí)驗(yàn)的效果圖:對“”進(jìn)行上述實(shí)驗(yàn)的效果圖:對“ ”進(jìn)行上述實(shí)驗(yàn)的效果圖: 算數(shù)編碼的結(jié)果codeword = outseq =cadacdb對算數(shù)編碼的又一次的調(diào)試:clear all。 codeword = codeword/ps(idx)。 codeword = 0。codeword = codewordlow_range(idx)。symbos = []。endlow_range = [0 high_range(1:length(ps)1)]。high_range = []。endacode = low。high = low+range*high_range(sbidx(i))。for i=1:length(inseq)。endlow = 0。sbidx = zeros(size(inseq))。 %定義high_rangefor k = 1:length(ps)high_range = [high_range sum(ps(1:k))]。)。 %四個(gè)信源符號出現(xiàn)的概率inseq = (39。]。 %設(shè)置輸出格式symbol = [39。clear all。endf = f./len。len = length(vector)。)。) error(39。endfunction f=frequency(vector) %函數(shù)frequency計(jì)算各符號出現(xiàn)的概率if~isa(vector,39。function codeword_new = a