How do I match multiple coloured images to other images of the same but that is in black and white and eliminate everything that matches with the black part and keep only the parts of the image that match with the white on MATLAB as part of a CNN?
John Williams answered .
2025-11-20
bwimage = imread(image_path) flag = [bwimage == value] % where value is value of white colorimage(flag) = 0 % or another appropriate value