Back | Reverse | Quick Reply | Post Reply |

Python: Images as Arguments
Link | by vedalken 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


Back | Reverse | Quick Reply | Post Reply |

Copyright 2000-2025 Gendou | Terms of Use | Page loaded in 0.0022 seconds at 2025-01-16 13:01:15