how to reconstruct image in jpeg compression?

15 vues (au cours des 30 derniers jours)
sumi Gogoi
sumi Gogoi le 12 Juin 2014
i am doing image compression using JPEG but i cannot reconstruct the image after inverse DCT. I used the following code...
if true
% code
end
% Restore back image
%----------------------------------------------------------
recon_image=double(recon_image);
recon_image=recon_image + 128 * (ones(size(recon_image)));
recon_image = mat2gray(recon_image);
I1=I1 + 128 * (ones(size(I1)));
I1 = mat2gray(I1);
row = row - pad_rows;
coln = coln - pad_colns;
recon_image = recon_image(1:row, 1:coln);
recon_image = mat2gray(recon_image);

Réponses (0)

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by