March 2018
Beginner to intermediate
306 pages
9h 54m
English
The steps for this recipe are as follows:
import cv2import numpy as npimage = cv2.imread('../data/Lena.png', 0).astype(np.float32) / 255
gamma = 0.5corrected_image = np.power(image, gamma)
cv2.imshow('image', image)cv2.imshow('corrected_image', corrected_image)cv2.waitKey()cv2.destroyAllWindows()
Read now
Unlock full access