In [4]:
%matplotlib inline
import numpy as np
from __future__ import division
import matplotlib.pyplot as plt
import seaborn as sns
plt.rcParams['axes.grid'] = False
import cv2
import logging
logger = logging.getLogger()
In [5]:
f, axarr = plt.subplots(2, 2, figsize=(15,15))
axarr[0,0].imshow(plt.imread('./res/70_80/A.png'))
axarr[0,0].set_title('A')
axarr[0,1].imshow(plt.imread('./res/70_80/B.png'))
axarr[0,1].set_title('B')
axarr[1,0].imshow(plt.imread('./res/70_80/C.png'))
axarr[1,0].set_title('C')
axarr[1,1].imshow(plt.imread('./res/70_80/D.png'))
axarr[1,1].set_title('D')
Out[5]:
区别:
观察亮部,颜料的使用量 D < B < A = C。
所以 A,C 较 B, D 更偏蓝。
哪种方法更好呢?
视情况而定,
但基本原则:但尽可能精确,清晰,简单。
In [6]:
f, axarr = plt.subplots(1, 2, figsize=(15,15))
axarr[0].imshow(plt.imread('./res/fig_2_7/A.png'))
axarr[0].set_title('A')
axarr[1].imshow(plt.imread('./res/fig_2_7/B.png'))
axarr[1].set_title('B')
Out[6]:
In [7]:
f, axarr = plt.subplots(1, 2, figsize=(15,15))
axarr[0].imshow(plt.imread('./res/fig_2_9/A.png'))
axarr[0].set_title('A')
axarr[1].imshow(plt.imread('./res/fig_2_9/B.png'))
axarr[1].set_title('B')
Out[7]: