Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
In my problem, i have taken rgb image of size 512*512,then converted it to greyscale and applied dct2 on it.now i want to do huffman coding of this.Plz tell me how to do this and also tell me if i am wrong.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I=imread('lena.jpg'); % Reads the image whose name is lena & format is jpg.
whos %
save I
load I
T1=I;
figure;imshow(I);
title('coloured image of lena')
T1=im2double(T1);
G=rgb2gray(T1);
whos
imshow(G);
imagesc(G);title('grayscale image of lena')
T2=G;
Z=dct2(T2);
figure;imshow(Z);
title('dct transformed')
1 comentario
Walter Roberson
el 27 de Nov. de 2013
dct is for lossy encoding, not lossless encoding.
dct and huffman is very likely "modified huffman encoding" rather than pure huffman encoding. You need to research the algorithm.
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!