Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Kent Johnson
On Mon, Jan 11, 2010 at 2:02 PM, Carnell, James E wrote: >> I want to subtract the Red Value in an array cell from a neighboring >> Red Value cell. >> >> >>> pictArray[39][4]    #pixel at 39 4 >> array([150, 140, 120], dtype=unint8) >> >> >>> pictArray[39][5]    #p

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Marc Tompkins
On Mon, Jan 11, 2010 at 11:02 AM, Carnell, James E < jecarn...@saintfrancis.com> wrote: > > > > > I'm sure this is easy, but I am having a difficult time finding the > > right search terms to find it on the Internet. Any help much > > appreciated. > > > > 3 dimensional array(x,y,rgb) which is a PI

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Carnell, James E
> > I'm sure this is easy, but I am having a difficult time finding the > right search terms to find it on the Internet. Any help much > appreciated. > > 3 dimensional array(x,y,rgb) which is a PIL image into a numpy array > using 'asarray' function. > > I want to subtract the Red Value in an a

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Marc Tompkins
On Mon, Jan 11, 2010 at 10:20 AM, Carnell, James E < jecarn...@saintfrancis.com> wrote: > > I'm sure this is easy, but I am having a difficult time finding the right > search terms to find it on the Internet. Any help much appreciated. > > 3 dimensional array(x,y,rgb) which is a PIL image into a n

[Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Carnell, James E
I'm sure this is easy, but I am having a difficult time finding the right search terms to find it on the Internet. Any help much appreciated. 3 dimensional array(x,y,rgb) which is a PIL image into a numpy array using 'asarray' function. I want to subtract the Red Value in an array cell from a ne