Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started