fichiers enregistrement after compression

4 visualizzazioni (ultimi 30 giorni)
slama najla
slama najla il 17 Mag 2012
Good evening all
Please is that you can help me?
I need registration code file after the huffman coding.
I break my MRI medical image by DWT then I realized for LL with lossless jpeg and hl, lh, hh with DPCM then I apply the zigzag reading and huffman coding but still I want to save all this data in a file to obtient a compressed image.
thank you for you help
[merged information from duplicate question of 20 May 2012 at 0:30]
Hello every body;
my problem is i find the size of compressed image is very superior original image.
is that you can help me find a matlab code to save all this data to be compressed image size. Thank you in advance for helping me
is what my code is correct or not? please is what you can give me a registration code files to be compressed image
Mettre le code% Alog le 0101010 de ... de de Dans un Vecteur de 8 bits par l'élement de L2 = Erreur% length (CODEH);
LCDH = round (L2 / 8);
Si mod (L2, 8) <4
Si mod (L2, 8) ~ = 0
LCDH = LCDH +1;
nageoire
nageoire
LcdnH = (LCDH) * 8;
DIFLcdH = (LcdnH)-L2;
codnH = zeros (1, LcdnH);
k = 1; versez i = 1: L2; codnH (k) = CODEH (i);
k = k +1;
nageoire
Tcod8H = zeros (1, la LCDH);
k = 1;
versez i = 1: la LCDH
versez j = 00:07
Tcod8H (i) = (codnH (k + j)) * (2 ^ j) + Tcod8H (i);
nageoire;
k = k +8;
nageoire;
LTH = length (Tcod8H);
LXF = length (XfuH);
A = []; P = []; B = [];
k = 1, ii = 1; jj = 1;
versez i = 1: si LXF XfuH (i)> 255
temp = abais (XfuH (i));
P (ii) = i;
versez j = 1:2
A (k) = temp (j);
k = k +1;
nageoire;
ii = ii 1;
D'AUTRE
B (jj) = XfuH (i);
jj = jj +1;
nageoire;
nageoire;
l = longueur (A);
h01 = redimensionnement (LXF);
H03 =% redimensionnement (LT);
H02 = redimensionnement (l);
H04 redimensionnement% = (T);
% H05 = redimensionnement (LXfu);
Fichier = [ABP h01 H02 Tcod8H DIFLcdH taille taille1 taille2 taille3];
% Taux_de_compression = MX * NX / length (fichier);
Gain_de_compression% = 100 * (1-Taux_de_compression)
% Gain_de_compression = 100 * (1-1/Taux_de_compression);
f = fopen ('compressionnnnn irm avec prédiction.comp', 'w');
fwrite (f, Fichier, 'ubit8');
fclose (f);

Risposte (3)

Walter Roberson
Walter Roberson il 21 Mag 2012
Your questions are disappearing because I am deleting them. You have posted the same question a dozen times. Do not post duplicate questions. Use one question per topic, and edit that one question if you need to clarify it or rephrase it.
I have been deleting your extra questions and merging them together, but you posted a lot of them, and my network is slow today, so it is taking me time to get all the information in to one place.
It appears that your first language is French. Some of the French terms you have been using in your question are not the same words that would be used in English, and people do not understand your question. If you post a copy of your question written in French, then I will use Google Translate to figure out what the English terms are.

slama najla
slama najla il 21 Mag 2012
merci bien mr et désolé que je posté la même question une douzaine de fois. je le posté la même question une douzaine de fois car je besoin d'une réponse très urgent . merci et une autre fois je suis très désolé
  1 Commento
Walter Roberson
Walter Roberson il 21 Mag 2012
You have asked about "registration" file. English uses some other term for the concept. If you post your original question in French, I will try to work out what you are asking.

Accedi per commentare.


slama najla
slama najla il 22 Mag 2012
ok mr Can i ask the same question in french?
  2 Commenti
Walter Roberson
Walter Roberson il 22 Mag 2012
Yes, please go ahead and post the same question in French here.
slama najla
slama najla il 22 Mag 2012
hello sir,can you help me please
my application is as follows:
I am trying to make a compression for 2d medical data
First of all, i apply DWT on an image of size 521 * 521, then I apply lossless jpegfor the band LL and DPCM on LH, HL and HH, then I apply the zigzag reading and coding huffman on four sub-bands
but the problem that when i use this kind of file record, the
size of the compressed data is very huge than the original image.Is it possible to send me another code to make the correction and thank you , i will be grateful.
X4=blkproc(Q1V,[8 8],'zigzag(a)');
[M6 M7]=size(X4);
taille=M6*M7;
XZvaH=reshape(X4',1,taille);
%%%%
X5=blkproc(Q1H,[8 8],'zigzag(a)');
[M8 M9]=size(X4);
taille1=M8*M9;
XZvaH1=reshape(X5',1,taille1);
%%%%
X6=blkproc(Q1D,[8 8],'zigzag(a)'); % Appliquer la fonction zigzag.
[M10 M11]=size(X6);
taille2=M10*M11;
XZvaH2=reshape(X6',1,taille2);
%%%%%
X7=blkproc(u,[8 8],'zigzag(a)');
[M12 M13]=size(X7);
taille3=M12*M13;
XZvaH3=reshape(X7',1,taille3);
%%%%
Bb=[XZvaH XZvaH1 XZvaH2 XZvaH3];
%alg de Huffman
%Bb=uint8(Bb);
[XuH,XfuH]=proba(Bb);
XfrequH=XfuH./somfuH;
[dict,avglen]= huffmandict(XuH,XfrequH);
codeH= huffmanenco(Bb,dict);
%alog Mettre le code de 0101010...dans un vecteur de 8 bits a l'élement de
%erreur
L2=length(codeH);
LcdH=round(L2/8);
if mod(L2,8)<4
if mod(L2,8)~=0
LcdH=LcdH+1;
end
end
LcdnH=(LcdH)*8 ;
DIFLcdH=(LcdnH)-L2 ;
codnH=zeros(1,LcdnH);
k=1;
for i=1:L2;
codnH(k)=codeH(i);
k=k+1;
end
Tcod8H=zeros(1,LcdH);
k=1;
for i=1:LcdH
for j=0:7
Tcod8H(i)=(codnH(k+j))*(2^j)+Tcod8H(i);
end;
k=k+8;
end;
LTH=length(Tcod8H);
LXf=length(XfuH);
A=[];P=[];B=[];
k=1;ii=1; jj=1;
for i=1:LXf
if XfuH(i)>255
temp=abais(XfuH(i));
P(ii)=i;
for j=1:2
A(k)=temp(j);
k=k+1;
end;
ii=ii+1;
else
B(jj)=XfuH(i);
jj=jj+1;
end;
end;
l=length(A);
h01=resize(LXf);
%h03=resize(LT);
h02=resize(l);
%h04=resize(T);
%h05=resize(LXfu);
fichier=[ A B P h01 h02 Tcod8H DIFLcdH taille taille1 taille2 taille3];%DIFLrl
%Taux_de_compression=MX*NX/length(fichier);
%Gain_de_compression=100*(1-Taux_de_compression)
%Gain_de_compression=100*(1-1/Taux_de_compression);
f=fopen('compressionnnnn irm avec prédiction.comp','w');
fwrite(f,fichier,'ubit8');
fclose(f);

Accedi per commentare.

Categorie

Scopri di più su Denoising and Compression in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by