Afficher La Matrice A

Description
image

Please download to get full document.

View again

of 6
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information
Category:

Documents

Publish on:

Views: 0 | Pages: 6

Extension: PDF | Download: 0

Share
Transcript
  1-   Afficher la matrice a : clear all; close a a= [43 42 41 40 39 44 21 20 19 18 45 22 7 6 5 16 46 23 8 1 4 15 47 24 9 2 3 14 48 25 10 11 12 49 26 27 28 29 50 51 52 53 54 figure(1);   imagesc(a);   2-   En afficher l’image a figure(2);   colormap(gray);   imagesc(a);   ll; clc   38 37 64;   17 36 63;   35 62;   34 61;   33 60;   13 32 59;   30 31 58;   55 56 57];   niveau de gris (noir et blanc) :  3-   En afficher la matrice figure(3);   subplot(2,2,1)   imagesc(a)   colormap(gray);   d= d=[(1/sqrt(8)) (1/2) (1/2)*(cos(3*pi/16)) (1/ (1/2)*(cos(6*pi/16)) (1/   (1/sqrt(8)) (1/2)*(c(1/2)*(cos(9*pi/16)) (1/ (1/2)*(cos(18*pi/16)) (1   (1/sqrt(8)) (1/2)*(c (1/2)*(cos(15*pi/16)) (1 (1/2)*(cos(30*pi/16)) (1   (1/sqrt(8)) (1/2)*(c (1/2)*(cos(21*pi/16)) (1 (1/2)*(cos(42*pi/16)) (1   (1/sqrt(8)) (1/2)*(c(1/2)*(cos(27*pi/16)) (1 (1/2)*(cos(54*pi/16)) (1   (1/sqrt(8)) (1/2)*(c (1/2)*(cos(33*pi/16)) (1 (1/2)*(cos(66*pi/16)) (1   (1/sqrt(8)) (1/2)*(c (1/2)*(cos(39*pi/16)) (1 (1/2)*(cos(78*pi/16)) (1   (1/sqrt(8)) (1/2)*(c(1/2)*(cos(45*pi/16)) (1 (1/2)*(cos(90*pi/16)) (1   subplot(2,2,2)   imagesc(d)   colormap(gray);   dt=d'; %dt : si matrice transposée de d subplot(2,2,3)   imagesc(dt)   a » , « d » et « d’» dans même fenêtre : (cos(pi/16)) (1/2)*(cos(2*pi/16)) 2)*(cos(4*pi/16)) (1/2)*(cos(5*pi/16 2)*(cos(7*pi/16)); os(3*pi/16)) (1/2)*(cos(6*pi/16)) 2)*(cos(12*pi/16)) (1/2)*(cos(15*pi/ /2)*(cos(21*pi/16)); os(5*pi/16)) (1/2)*(cos(10*pi/16)) /2)*(cos(20*pi/16)) (1/2)*(cos(25*pi /2)*(cos(35*pi/16)); os(7*pi/16)) (1/2)*(cos(14*pi/16)) /2)*(cos(28*pi/16)) (1/2)*(cos(35*pi /2)*(cos(49*pi/16)); os(9*pi/16)) (1/2)*(cos(18*pi/16)) /2)*(cos(36*pi/16)) (1/2)*(cos(45*pi /2)*(cos(63*pi/16)); os(11*pi/16)) (1/2)*(cos(22*pi/16)) /2)*(cos(44*pi/16)) (1/2)*(cos(55*pi /2)*(cos(77*pi/16)); os(13*pi/16)) (1/2)*(cos(26*pi/16)) /2)*(cos(52*pi/16)) (1/2)*(cos(65*pi /2)*(cos(92*pi/16)); os(15*pi/16)) (1/2)*(cos(30*pi/16)) /2)*(cos(60*pi/16)) (1/2)*(cos(75*pi /2)*(cos(105*pi/16))]; )) 16)) /16)) /16)) /16)) /16)) /16)) /16))  4-   En calculer et afficher C= d*a*dt DCT= round( C ); Les coefficient de « dct » : dct = 180 -53 134 -43 79 -1 -53 12 -37 4 -20 0 108 -34 -3 -10 12 -5 -35 15 -7 0 0 -2 68 -20 5 -5 -2 -5 -8 4 -5 1 2 -5 46 -13 8 -3 3 -3 13 -3 2 0 0 -3 Affichage de matrice « dct » a D’ le DCT : 0 53 15 -14 -5 11 3 -3 -1 3 -1 -1 -1 -4 4 -3 vec « a » , « d » et « d’» dans même fenêt DCT e : d  5-   Quantification : a-   Représentent la matric Q=[16 11 10 16 12 12 14 19 14 13 16 24 14 17 22 29 18 22 37 56 24 35 55 64 49 64 78 87 72 92 95 98 figure(4);   imagesc(Q);  b-   Calculer la DCTQ et a dctq=round(dct./Q)   figure(5);   imagesc(dctq);   e Q de quantification : 24 40 51 61;   26 58 60 55;   40 57 69 56;   51 87 80 62;   68 109 103 77;   81 104 113 92;   103 121 120 101;   112 100 103 99];   fficher :
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks