Python: Images as Arguments
Link |
by
on 2009-09-26 18:31:32
|
As part of an assignment for my programming class, I am to write a function that, given a picture, calculates the average red value among all of the pixels. The way my function currently works is fine, but it doesn't follow the specification of the assignment. My function, average_red, needs to have the parameter [pic] where its argument is a picture. After talking with the class's TA, I now know that there is a way to send in images as arguments for the function. However, I can't figure out how to do so. Can anyone give me any pointers about this? -Draiken Talkos |