2018-02-15から1日間の記事一覧

Interface2017年05月号新画像処理101を読む

A-3 濃淡を網目の2値パターンで表現する「ベイヤー型ハーフトーニング」 from random import random img_src = cv2.imread("data/img_A-3.bmp") img_dst = np.empty_like(img_src) #座標の大きさ eight = img_src.shape[0] width = img_src.shape[1] patt = …