-
Notifications
You must be signed in to change notification settings - Fork 13
Выполнение дз #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| def set_grey_color(arr, averageValue, blockSize, i, j, step): | ||
| for row in range(i, i + blockSize): | ||
| for col in range(j, j + blockSize): | ||
| greyValue = averageValue // 50 * step // 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо было делить не на 50, а на step
|
|
||
|
|
||
| def transform_image(file_name, gradation, blockSize): | ||
| image = Image.open(file_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если вы открываете файл в функции, то и сохранять файл желательно в этой же функции.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше передавать в эту функцию изображение в виде массива Numpy.
|
На будущие папку .idea/ надо добавлять в .gitignore |
|
Кому мне оценку ставить? Нигде нет вашего ФИО |
|
5 |
No description provided.