I have an image with a person in front of a green screen, I took away the green screen by finding values larger than 254 in the second matrix ( the green matrix) and that was done by AA=254<C Then I did
R is the red values G is the green values and B is the blue values. BB is my matrix of 1s and 0s, 1s are the values which are larger than 254. These values are than replaced with 255 and then when I display the image I get the person in fron of a white screen. Now how do I replace the white screen with a jpg file that I have. The pixel lengths are the same so there is no reason to resize.