I am trying to make a simple program that reads the pixel values (BGR) of an input image and makes an output image of the same size but if the pixel in the original picture is white, the output image's pixel (of the same position) is Blue, and if the pixel is not white, makes the same pixel in the output image Black. However I'm having difficulties getting it to work correctly. It seemed pretty easy but it doesn't behave how I'd expect it to. Here's my code for it below: I am trying to make a simple program that reads