Question: How do I negate the negative? from PIL import Image in mage. open('pic.jpg ) def negative image(pixel): return tuple(map(Lambda a 255 a, pixel)) negative-list= map

How do I negate the negative?
 How do I negate the negative? from PIL import Image in

from PIL import Image in mage. open('pic.jpg" ) def negative image(pixel): return tuple(map(Lambda a 255 a, pixel)) negative-list= map ( negative-image, in.getdata() ) ntutt or with list comprehension, neg_1st= [(255-ple), 5-p [1] , 255-pl2]) 2 5 for p in in.getdata( ERE im. putdata(list (negativelist)) im. save('negative3.jpg')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!