So basically, i want to iterate over all my pixels, and if they are withing range, change their RGB values to white, else to black.
I've seen a couple of examples where a mask is used, but i'm a ittle confused as to how i would use a mask to compare an RGB value. My range is as such
min_YCrCb = np.array([0,133,77],np.uint8)
max_YCrCb = np.array([255,173,127],np.uint8)
So first i have my image,img, in YCrCb. How do i create a mask such that it'll see if the RGB is in range, and once that's done, how do i set them to black and white?