On Wed, Apr 16, 2008 at 2:54 PM, Gabriel Genellina
<[EMAIL PROTECTED]> wrote:
> En Wed, 16 Apr 2008 10:36:14 -0300, Jonathan Shao <[EMAIL PROTECTED]>
> escribió:
> > *Gabriel Genellina* gagsl-py2 at yahoo.com.ar
> >
>
> > *Wed Apr 16 08:44:10 CEST 2008*
>
> >> Another thing would be to rearra
En Wed, 16 Apr 2008 10:36:14 -0300, Jonathan Shao <[EMAIL PROTECTED]>
escribió:
> *Gabriel Genellina* gagsl-py2 at yahoo.com.ar
>
> *Wed Apr 16 08:44:10 CEST 2008*
>> Another thing would be to rearrange the loops so the outer one executes
> less times; if you know that borderX< better to swap th
*Gabriel Genellina* gagsl-py2 at yahoo.com.ar
*Wed Apr 16 08:44:10 CEST 2008*
> Another thing would be to rearrange the loops so the outer one executes
less times; if you know that borderX<--
http://mail.python.org/mailman/listinfo/python-list
En Tue, 15 Apr 2008 23:24:01 -0300, Jonathan Shao <[EMAIL PROTECTED]>
escribió:
> I've written up a stripped down version of the code. I apologize for the
> bad
> coding; I am in a bit of a hurry.
First things first: I think you will gain inmensely using NumPy:
http://numpy.scipy.org/
My t
On 4/15/08, Daniel Fetchinson <[EMAIL PROTECTED]> wrote:
> > Can I then simply ignore the time data then? I do see better performance
> > obviously the smaller the box is, but I guess my issues is how seriously
> to
> > take all this data. Because I can't claim "performance improvement" if
> there
> Can I then simply ignore the time data then? I do see better performance
> obviously the smaller the box is, but I guess my issues is how seriously to
> take all this data. Because I can't claim "performance improvement" if there
> isn't really much of an improvement.
>
> On Tue, Apr 15, 2008 at
> I've written up a stripped down version of the code. I apologize for the bad
> coding; I am in a bit of a hurry.
>
> import random
> import sys
> import time
>
> sizeX = 320
> sizeY = 240
> borderX = 20
> borderY = 20
>
> # generates a zero matrix
> def generate_zero():
> matrix = [[0 for y i
I've written up a stripped down version of the code. I apologize for the bad
coding; I am in a bit of a hurry.
import random
import sys
import time
sizeX = 320
sizeY = 240
borderX = 20
borderY = 20
# generates a zero matrix
def generate_zero():
matrix = [[0 for y in range(sizeY)] for x in ra
> The project I'm working on is motion detection, involving a bit of image
> processing. No worries: no image processing background needed.
>
> Suffice to say that I initially wrote a script that goes through every pixel
> of a 320x240 picture (turned into an array using PIL) and performs some
> ca
The project I'm working on is motion detection, involving a bit of image
processing. No worries: no image processing background needed.
Suffice to say that I initially wrote a script that goes through every pixel
of a 320x240 picture (turned into an array using PIL) and performs some
calculatiosn.
10 matches
Mail list logo