TP-probabilites/TP1/exercice_2.m

23 lines
477 B
Mathematica
Raw Permalink Normal View History

2023-06-10 19:01:20 +00:00
clear;
close all;
taille_ecran = get(0,'ScreenSize');
L = taille_ecran(3);
H = taille_ecran(4);
% Lecture d'une image interne a Matlab et conversion en doubles :
I_max = 255;
I_min = 0;
I = rgb2gray(imread('autumn.tif'));
I = double(I);
% décorrélation
I(:,2:end) = I(:,2:end) - I(:,1:end-1);
% Affichage de l'image :
figure('Name','Exemple d''image interne a Matlab','Position',[0,0,0.33*L,0.3*L]);
imagesc(I);
axis off;
axis equal;
colormap gray;