xxxxxxxxxx
import cv2 as cv
import numpy as np
w = 1280
h = 600
img_gray = np.zeros([h,w,1],dtype=np.uint8)
img_rgb = np.zeros([h,w,3],dtype=np.uint8)
for y in range(h):
for x in range(w):
img_gray[y,x] = 255
img_rgb[y,x] = [255, 255, 255]