Lines Matching refs:img2
256 img2 = Image.open(image2)
259 if img1.size != img2.size:
264 if img1.getbands() != img2.getbands():
267 self.assertEqual(img2.getbands(), ("R", "G", "B", "A"))
270 bands = img2.split()
274 # Generate a version of img2 without alpha
275 img2 = Image.merge("RGB", (bands[0], bands[1], bands[2]))
279 dat2 = numpy.array(img2)
284 print(img2.load()[0, 0])
301 img2 = Image.open(image2)
304 if img1.size != img2.size:
308 if img1.getbands() != img2.getbands():
311 self.assertEqual(img2.getbands(), ("R", "G", "B", "A"))
314 bands = img2.split()
318 # Generate a version of img2 without alpha
319 img2 = Image.merge("RGB", (bands[0], bands[1], bands[2]))
323 img2bands = img2.split()