def plot_rgb_components(self):
"""
Plot RGB colour channels for both cover and steganographic images.
"""
f, axarr = plt.subplots(nrows=2, ncols=3)
for i, image_type in enumerate(['Cover', 'Stego']):
for j, colour in enumerate(['Red', 'Green', 'Blue']):
axarr[i, j].imshow(self.I[:, :, j], cmap='{}s'.format(colour))
axarr[i, j].set_title('{} {}'.format(image_type, colour))
axarr[i, j].set_xticklabels([])
axarr[i, j].set_yticklabels([])
plt.show()
评论列表
文章目录