Write a function to “blue-ify” a face. Write a function that accepts a picture as input. If any pixel has a blue value less than 150, then set that pixel’s color to white. Try it on a picture of a face and see what you get.
What will be an ideal response?
```
def blueify(picture):
for pix in getPixels(picture):
value = getBlue(pix)
if value<150:
setColor(pix,white)
```
Note: If the picture is dark enough, checking for values less than 150 may lead to a mostly white image.
You might also like to view...
Names that you assign to cells and cell ranges can be used in formulas.
Answer the following statement true (T) or false (F)
The color orange denotes ____.
A. success B. creativity C. victory D. harmony
List at least three differences between wildcard metacharacters and regular expressions.
What will be an ideal response?
Which two options can be used for vCenter Server 6.x database availability?(Choose two)
a. Microsoft SQL Server 2012/2014 AlwaysOn Availability Groups(AG) b. vCenter Server Watchdog c. NSX load balancer d. vCenter Server Heartbeat e. Microsoft Windows Server Failover Clustering