I currently have a np.ndarray bitmask in a format where the pixels where the mask is at a value of 1 and the pixels where there is no mask is at a value 0.
np.ndarray
I