19_毛玻璃效果

import cv2
import numpy as np
import random
img = cv2.imread('ruonan.jpg',1)
Info = img.shape
height = Info[0]
width = Info[1]
dst = np.zeros((height,width,3),np.uint8)
mm = 8
for i in range(mm,height):
 for j in range(mm,width):
  index = int(random.random()*8)
  (b,g,r) = img[i-index,j-index]
  dst[i,j] = (b,g,r)
cv2.imshow('dst',dst)
cv2.waitKey(0)
上一篇:OLAP 一些扯淡


下一篇:24_#浮雕效果