Guest User

Untitled

a guest
Jan 8th, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. imga, imgb = plt.imread('NH A.png'), plt.imread('NH B.png')
  5.  
  6. if True:
  7.     plt.figure()
  8.     for i, img in enumerate((imga, imgb)):
  9.         plt.subplot(2, 2, i+1)
  10.         plt.imshow(img)
  11.    
  12.     for i, img in enumerate((imga, imgb)):
  13.         plt.subplot(2, 2, i+1+2)
  14.         imgmono = img[:, :, :3].sum(axis=2)
  15.         plt.imshow(imgmono)
  16.    
  17.     plt.show()
RAW Paste Data