h_img = cv2.merge((np.ndarray((height, width), np.uint8, H.ravel()), h, h))