1051513
撰寫一個程式從檔案讀取一張圖像,將圖像的每一個點像素的值各加上一個整數值 v
(255 v 255),並將圖像儲存至一個新圖像檔案中。
python 3.7
opencv 4.2
Anaconda3 spyder
for column in range(column_num):
for row in range(row_num):
bright_image[row, column, 0] = bright_image[row, column, 0]+30
bright_image[row, column, 1] = bright_image[row, column, 1]+30
bright_image[row, column, 2] = bright_image[row, column, 2]+30
選取所有像素並加30
沒有留言:
張貼留言