Jump to content

Image convolution: Difference between revisions

→‎{{header|Python}}: remove unused variable
(→‎{{header|Python}}: Handle grey scale images)
(→‎{{header|Python}}: remove unused variable)
Line 1,417:
im = np.array(im, dtype=float) #Convert to float to prevent clipping colors
kernelEmpty = [[0,0,0],[0,0,0],[0,0,0]]
kernel = np.array([[[0,-2,0],[0,-1,0],[0,0,0]],
[[0,-1,0],[0,1,0],[0,1,0]],
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.