5 Jul 2006 17:14
Re: Crop Image with Numeric
Rikard Bosnjakovic wrote: > On 7/5/06, Kamilche <klachemin@...> wrote: >> if alpha[x][y] > 0: > > Strip ">0" from that line. That is, change it to "if alpha[x][y]:". > > Uh, that made it work a lot faster, but I don't know why. :-D It could still use some speed improvement, but at this point I'd call it usable. I thought it would require some mumbo jumbo with slicing columns out and doing nonzero checks, but this works too. Thanks! -Kamilche
RSS Feed