1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
| from pylab import *
fig = figure()
print("Visualisation d'une coupe de l'image de départ....\n ")
subplot(221)
im1=fromfile('res_volume_copie.im','float32')
im1=im1.reshape(141,141)
gray()
title('image de depart')
imshow(im1)
#show()
print("Visualisation d'une coupe de l'image débruitée avec MMSE....\n ")
subplot(222)
im2=fromfile('res_volume_débruité avec MMSE.im','float32');
im2=im2.reshape(141,141);
title('image débruitée avec MMSE')
gray();
imshow(im2);
#show();
print("Visualisation d'une coupe de l'image différence MMSE....\n ")
subplot(223)
im3=fromfile('res_volume_difference_mmse.im','float32');
im3=im2.reshape(141,141);
gray();
imshow(im3);
#show();
print("Visualisation d'une coupe de l'image débruitée avec MAP....\n ")
subplot(224)
im4=fromfile('res_volume_débruité avec MAP.im','float32');
im4=im4.reshape(141,141);
gray();
imshow(im4);
#show();
#print("Visualisation d'une coupe de l'image différence MAP....\n ")
#subplot(225)
#im5=fromfile('res_volume_difference_map.im','float32');
#im5=im2.reshape(141,141);
#gray();
#imshow(im5);
#show();
subplot_tool()
show()
print("fin\n ") |
Partager