Python學習記錄:OpenCV

1、 DCT和IDCT變換 原圖以下 web import numpy as np import cv2 //以灰度模式打開 y = cv2.imread('jieping.jpeg',0) y1 = y.astype(np.float32) Y = cv2.dct(y1) cv2.imshow("Dct",Y) y2 = cv2.idct(Y) cv2.imshow("iDCT",y2.asty
相關文章
相關標籤/搜索