May-08-2022, 01:12 PM
Does this work for you?
rows, cols = imgshape[:2] #(192, 184, 3) s = np.zeros((rows, cols)) b = np.ones(imgshape[:2]) k = 0.7