Skip to content

Comments

Shumakov Gleb#7

Open
shumakooov wants to merge 4 commits intorailbotan:mainfrom
shumakooov:Шумаков_Глеб

Hidden character warning

The head ref may contain hidden characters: "\u0428\u0443\u043c\u0430\u043a\u043e\u0432_\u0413\u043b\u0435\u0431"
Open

Shumakov Gleb#7
shumakooov wants to merge 4 commits intorailbotan:mainfrom
shumakooov:Шумаков_Глеб

Conversation

@shumakooov
Copy link

No description provided.

filter.py Outdated
r = arr[n][n1][0]
g = arr[n][n1][1]
b = arr[n][n1][2]
M = int(r + g + b) // 3
Copy link
Owner

Choose a reason for hiding this comment

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

Проблема с переполнением unit8 осталась.

filter.py Outdated
r = array[x][y][0]
g = array[x][y][1]
b = array[x][y][2]
M = r + g + b
Copy link
Owner

Choose a reason for hiding this comment

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

Проблема с переполнением uint8 осталась.

return Image.fromarray(np.uint8(image_arr))


def set_color(new_c, matrix, size, i, j):
Copy link
Owner

Choose a reason for hiding this comment

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

Здесь тоже нужно было использовать матричные операции с Numpy.

@railbotan
Copy link
Owner

4

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