Access over 20 million homework documents through the notebank

Get on-demand Q&A homework help from verified tutors

Read 1000s of rich book guides covering popular titles

Showing Page:

1/4

Sign up to view the full document!

Sign up to view the full document!

Sign up to view the full document!

clear all;p=imread('kaka.jpg'); %%%%%%%%%%%give path of the picturea=imresize(p,[100,100]);%DCTZ(:,:,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 endendK(:,:,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');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)>100) Z(i,j,1)=0; Z(i,j,2)=0; Z(i,j,3)=0; end endendK(:,:,1)=idct2(Z(:,:,1));K(:,:,2)=idct2(Z(:,:,2));K(:,:,3)=idct2(Z(:,:,3));subplot(2,4,2);%imshow(Z);imshow(uint8(K));title('50% compression');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)>140) Z(i,j,1)=0; Z(i,j,2)=0; Z(i,j,3)=0; end endendK(:,:,1)=idct2(Z(:,:,1));K(:,:,2)=idct2(Z(:,:,2));K(:,:,3)=idct2(Z(:,:,3)) ...

Purchase document to see full attachment

Purchase document to see full attachment

Review

Anonymous

Return customer, been using sp for a good two years now.

Anonymous

Thanks as always for the good work!

Anonymous

Document I purchased was really helpful. Had answers to help me with my hmw.