2017-08-16 12:24:29 +00:00
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
2018-06-08 17:27:32 +00:00
|
|
|
def plot_img_and_mask(img, mask):
|
2017-08-16 12:24:29 +00:00
|
|
|
fig = plt.figure()
|
2018-06-08 17:27:32 +00:00
|
|
|
a = fig.add_subplot(1, 2, 1)
|
|
|
|
a.set_title('Input image')
|
|
|
|
plt.imshow(img)
|
|
|
|
|
|
|
|
b = fig.add_subplot(1, 2, 2)
|
|
|
|
b.set_title('Output mask')
|
|
|
|
plt.imshow(mask)
|
|
|
|
plt.show()
|