モノクロ
プログラム(Python)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#-*- coding:utf-8 -*- import cv2 import numpy as np # load image (grayscale) # 画像を読み込む gray = cv2.imread("LegoFamilyGray.jpg",0) # 変換する dst = cv2.Laplacian(gray, cv2.CV_32F, ksize=3) # 結果を出力する cv2.imwrite("output.jpg", dst) |
データファイル
実行結果
元画像

変換後
