Browse over 20 million
homework answers & study documents

Engineering

Matlab programming of DCT and FFT

Type

Study Guide

Rating

Showing Page:
1/4


!
"#$
%&&'&&
%&&''&&'
%&&('&&(
for&
for&
if)*+
%
%'
%(
end
end
end
,&&'%&&
,&&''%&&'
,&&('%&&(
-'.
/%
/01,
2 0
%&&'&&
%&&''&&'
%&&('&&(
for&
for&
if)*
%
%'
%(
end
end
end
,&&'%&&
,&&''%&&'
,&&('%&&(
-'.'
/%
/01,
3 0

Sign up to view the full document!

lock_open Sign Up

Sign up to view the full document!

lock_open Sign Up

Sign up to view the full document!

lock_open Sign Up

Unformatted Attachment Preview

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

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.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4