python圖像矩陣相減時負值變成0或者254的問題

import numpy as np import cv2 import matplotlib.pyplot as plt img = cv2.imread("butterfly.png", 0) src_img = cv2.imread("qua.png", 0) res_img = img-src_img print(res_img) n, bins, patches = plt.his
相關文章
相關標籤/搜索