mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Tabs --> spaces in quine_mc_cluskey.py (#1426)
* Tabs --> spaces in quine_mc_cluskey.py * fixup! Format Python code with psf/black push
This commit is contained in:

committed by
John Law

parent
e8aa81297a
commit
ec7bc7c7cd
@ -22,10 +22,10 @@ def gaussian_filter(image, k_size, sigma):
|
||||
# im2col, turn the k_size*k_size pixels into a row and np.vstack all rows
|
||||
image_array = zeros((dst_height * dst_width, k_size * k_size))
|
||||
row = 0
|
||||
for i, j in product(range(dst_height), range(dst_width)):
|
||||
window = ravel(image[i : i + k_size, j : j + k_size])
|
||||
image_array[row, :] = window
|
||||
row += 1
|
||||
for i, j in product(range(dst_height), range(dst_width)):
|
||||
window = ravel(image[i : i + k_size, j : j + k_size])
|
||||
image_array[row, :] = window
|
||||
row += 1
|
||||
|
||||
# turn the kernel into shape(k*k, 1)
|
||||
gaussian_kernel = gen_gaussian_kernel(k_size, sigma)
|
||||
|
Reference in New Issue
Block a user