freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于哈夫曼編碼的圖像編解碼系統(tǒng)設(shè)計(jì)及實(shí)現(xiàn)畢業(yè)設(shè)計(jì)-文庫(kù)吧資料

2025-06-30 00:38本頁(yè)面
  

【正文】 d,39。 =m。 =length(vector)。 =huffcodes。 for index=1:nnz(codeword) huffcodes(codeword(index),1)=symbols(index)。 zipped=uint8(weights*double(string))。 string=reshape(string,8,cols)。 end end codeword=[codeword{:}]。 codeword{index}=code。 end if len0 code=sum(weights(codeword{index}==1))。 for index=1:length(codeword) len=length(codeword{index})。 weights=2.^(0:23)。 end codeword=codeword(symbols)。 pad=8mod(len,8)。 pointer=pointer+len。 len=length(code)。 pointer=1。 for index=1:length(vector) len=len+length(codeword{double(vector(index))+1})。 codeword(symbols)=codeword_tmp。 symbols_index=symbols_index(sortindex)。 symbols_index=[{[index1,index2]} symbols_index(3:end)]。 codeword_tmp(index2)=addnode(codeword_tmp(index2),uint8(1))。 index2=symbols_index{2}。 codeword_tmp=cell(len,1)。 len=length(symbols)。 [f,sortindex]=sort(f)。 symbols=find(f~=0)。 vector=vector(:)39。)。) eror(39。%=最大碼長(zhǎng)主程序中使用的函數(shù)代碼如下%%%%%%%%%%%%%%%%%%%%%%%%%%編碼函數(shù)%%%%%%%%%%%%%%%%%%%%%%%%%%% 信息處理課群綜合訓(xùn)練與設(shè)計(jì)基于哈夫曼編碼的圖像編解碼系統(tǒng)設(shè)計(jì)及實(shí)現(xiàn)%信息SY1001班王鳴0121009320403%huffencode函數(shù)對(duì)輸入矩陣vector進(jìn)行huffman編碼,返回編碼后的向量及相關(guān)信息function [zipped,info]= huffencode(vector) if ~isa(vector,39。maxcodelen=%d\n39。,)。 %=為湊整字節(jié)數(shù),編碼字符串最后添加零的位數(shù)fprintf(39。pad=%d\n39。解碼后的圖像39。imshow(unzipped)。原始圖像39。imshow(data)。 unzipped=huffdecode(zipped,info)。data=uint8(X)。39。);%=最大碼長(zhǎng)系統(tǒng)設(shè)計(jì)的完整主程序如下%%%%%%%%%%%%%%%%%%%%%%%%%主程序%%%%%%%%%%%%%%%%%%%%%%%%%%%% 信息處理課群綜合訓(xùn)練與設(shè)計(jì)基于哈夫曼編碼的圖像編解碼系統(tǒng)設(shè)計(jì)及實(shí)現(xiàn)%信息SY1001班王鳴0121009320403clcclearcd。); %=壓縮率fprintf (39。); %=為湊整字節(jié)數(shù),編碼字符串最后添加零的位數(shù)fprintf (39。);%解碼vectorindex=1;codeindex=1;code=0;for index=1:len;code=bitset(code,codeindex,string(index));codeindex=codeindex+1;byte = (bitset (code,codeindex));%從碼字表中讀出對(duì)應(yīng)元素if byte0;vector(vectorindex)=byte1;codeindex=1;code=0;vectorindex=vectorindex+1;(5)顯示編碼的壓縮信息(如壓縮率、最大碼長(zhǎng)等),部分程序如下所示:whos data huffcode huffdecode %顯示壓縮效果fprintf(39。部分解碼程序如下:vector=zeros(1,39。部分程序如下:while length(p)1;index1=simbols_index{1};index2=simbols_index{2};codeword_tmp (index1) =addnode (codeword_tmp(index1),uint8(0));codeword_tmp (index2) =addnode (
點(diǎn)擊復(fù)制文檔內(nèi)容
語(yǔ)文相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1