b=np.array([256*256,256,1], dtype=np.uint32) # or [1, 256, 256*256] BGR<->RGB
result=image@b
src = cv2.imread('/content/zhencshiny_37098706_orig_.jpeg')
b,g,r=cv2.split(src)
cv2.imwrite('/content/zhencshiny_37098706_orig_red.jpeg',r)
cv2.imwrite('/content/zhencshiny_37098706_orig_green.jpeg',g)
cv2.imwrite('/content/zhencshiny_37098706_orig_blue.jpeg',b)
import numpy as np
x = [1, 2, 3]
y = [10, 20, 30]
z = [100, 200, 300]
res1=np.array(np.meshgrid(x,y)).T.reshape(-1,3,2)
print(res1)
res2=np.array(np.meshgrid(x,y,z)).T.reshape(-1,3,3)
print(res2)
grid=np.ndarray((num_columns, num_rows))
grid[:,:]=math.pi * 0.25