- 博客(3)
- 收藏
- 关注
原创 python 低通滤波
低通滤波:import cv2 import numpy as npdef function(img): h,w=img.shape newimg=np.zeros((h,w),np.uint8) img2=np.fft.fft2(img) fshift = np.fft.fftshift(img2) st=fshift.copy() h,w=fshift.shape sh
2016-12-21 09:46:17 4729 1
原创 python 图像插值 最近邻、双线性、双三次
最近邻: import cv2 import numpy as np def function(img): height,width,channels =img.shape emptyImage=np.zeros((2048,2048,channels),np.uint8) sh=2048/height sw=2048/width for i in ran
2016-12-21 09:38:22 13903 4
原创 python 图像平移和旋转
import cv2 import math import numpy as np def move(img): height, width, channels = img.shape emptyImage2 = img.copy() x=20 y=20 for i in range(height): for j in range(width):
2016-12-21 09:36:33 7009
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人