Commit 4133262f authored by Jackson Garner's avatar Jackson Garner

add Vignette effect

parent 5f61448c
......@@ -121,6 +121,16 @@ while t - origin < len(wav_data) / rate:
a = np.abs(np.fft.fftshift(np.fft.fft(second[:])))
fftToImage.fftToImage(a, image)
cv2.imshow("t", (img * (1/255) + image).clip(0, 1))
preV = (img * (1/255) + image).clip(0, 1)
row,cols,rgb = img.shape
a = cv2.getGaussianKernel(cols,200.0)
b = cv2.getGaussianKernel(row,200.0)
c = b*a.T
d = c/c.max()
d = np.array([d, d, d]).transpose(1, 2, 0)
preV = preV * d
cv2.imshow('frame', preV)
cv2.waitKey(1)
# cv2.imshow('frame', img)
# cv2.waitKey(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment