Assignment 26 — image manipulation
Due Sunday, November 13
Module grey.py
- To implement function
color()
to support the greyscaling of an image.
- The module contains a built-in tester.
Function color( p )
- Returns a new pixel whose RGB values are
(m, m, m)
wherem
is is the integer cast of.299
×r + .587
×g + .114
×b
, andr
,g
, andb
are the RGB values of pixelp
.
| |