SHARE
TWEET

Untitled

a guest Jun 16th, 2019 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def plot_image(original):
  2.     f = plt.figure()
  3.     original=mpimg.imread(original)
  4.     mod=mpimg.imread('/home/ricardo/Scrivania/compressione_immagini_DCT/immagini/outfile.bmp')
  5.     plt.axis("off")
  6.     f.add_subplot(1,2, 1)
  7.     plt.title('original image')
  8.     plt.imshow(original,cmap='gray',aspect='auto')
  9.     plt.axis("off")
  10.     f.add_subplot(1,2, 2)
  11.     plt.title('compressed image')
  12.     plt.imshow(mod,cmap='gray',aspect='auto')
  13.     plt.axis("off")
  14.     plt.suptitle('image comparison', fontsize=16)
  15.     plt.show(block=True)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top