Write a program that creates an image (newimg) to highlight…
Write a program that creates an image (newimg) to highlight the differences between the two images img1, and img2. img1=imread(‘image1.jpg’);img2=imread(‘image2.jpg’); Assume both image1.jpg, and image2.jpg has same row and column dimensions The newly created image (newimg) will be of the same size, with all pixels of the white color [255,255,255] initially. In the newimg the pixels which have different values in img1, and img2 will be converted to green color [0,255,0], and all other pixels will be converted to red color [255,0,0]. Note: you cannot use imshowpair() in this program
Read Details