Skip to content

Conversation

@maksaevalisa
Copy link

No description provided.

filter.py Outdated
b = int(arr[n][n1][2])
sum_color += r + g + b
sum_color = int(sum_color // 100)
sum_color += np.sum(arr[n][j:j+size][:])
Copy link
Owner

@railbotan railbotan Nov 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np.average(arr[i: i + size, j:j+size])

filter.py Outdated
arr[n][n1][0] = int(sum_color // 50) * 50 // gray
arr[n][n1][1] = int(sum_color // 50) * 50 // gray
arr[n][n1][2] = int(sum_color // 50) * 50 // gray
arr[n][j:j+size][:] = int(sum_color // 50) * 50 // gray
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arr[i: i + size, j:j+size] = int(sum_color // gray_step) * gray_step # sum_color - sum_color % gray_step

@railbotan
Copy link
Owner

5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants