Closed GoogleCodeExporter closed 8 years ago
I think the problem is at your gray['height']. gray is a class, not a
dictionary, a
tuple, nor a list. Can you try gray.height instead?
Original comment by pmtri80@gmail.com
on 8 May 2009 at 12:24
I mean replacing int(gray['height']) with gray.height
Original comment by pmtri80@gmail.com
on 8 May 2009 at 12:25
Sorry, I double-posted this issue and solved it in the other double post. The
image
class's __dict__ feature is extended to allow for selection of pixels, so it was
looking for a tuple of two ints, not 'height'. I had to get the height attribute
through: gray.__dict__['height'], so it works now.
Original comment by ian.wetherbee
on 8 May 2009 at 6:13
Okay. Glad you have resolved the problem.
Original comment by pmtri80@gmail.com
on 9 May 2009 at 1:30
Original issue reported on code.google.com by
ian.wetherbee
on 7 May 2009 at 5:22