I have numpy array a of shape m,n,3 and mask of shape m,n. When I try setting a[mask > 0] = (255, 0, 0) I get error
ValueError: NumPy boolean array indexing assignment cannot assign 3 input values to the 7401 output values where the mask is true`
How can I achieve this functionality in numpy?
m,n,3shaped