フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am trying to compress an image through DCT compression, but i have some problems on the idea of collecting zeroz and non zeros values for each 8*8 sub_blocks in order to get the probabilty for the huffman conding, can anybody help me please?

1 回表示 (過去 30 日間)
john khnayzir
john khnayzir 2018 年 11 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
....... ........ for i=1:128 for j = 1:128
t=q_ca(i,j);
t=cell2mat(t);
b=ZigZagScan(t);
vect=b
count0=0;
l = 1;
p=1;
for o= 1:64
if vect(o)==0
count0=count0 + 1;
elseif vect(o) ~=0
noZ(p)=vect(o)
p=p+1;
if count0 ~= 0
Z(l)= count0
l=l+1;
count0=0;
end
end
end
Z=0;
end
end
......................

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by