I want to find the size of compressed and original images size after applying FFT or DCT or PCA.Kindly if anyone have idea about it please share it with me.Thanks in advance.
p=imread('picture.jpg');a=imresize(p,[100,100]);%DCT
Z(:,:,1)=dct2(a(:,:,1));Z(:,:,2)=dct2(a(:,:,2));Z(:,:,3)=dct2(a(:,:,3));for i=1:100 for j=1:100 if((i+j)>60) Z(i,j,1)=0; Z(i,j,2)=0; Z(i,j,3)=0; end end end K(:,:,1)=idct2(Z(:,:,1));K(:,:,2)=idct2(Z(:,:,2));K(:,:,3)=idct2(Z(:,:,3));subplot(2,4,1);%imshow(Z);
imshow(uint8(K));title('70% compression');
How can we find the size of the '70%' compressed image i.e K ?
Best Answer