Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-03 Thread Antonio Valentino
Il giorno Tue, 02 Feb 2010 11:13:54 -0500 Frank Warmerdam ha scritto: > Antonio Valentino wrote: > > Anyway, IMHO the point here is not to decide if we have to > > *modify* the diff function so that it returns abs(b1-b2). > > Greg asked to add a new one ( abs(b1-b2) ) to the *base set* of > > pix

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-03 Thread Vincent Schut
On 02/03/2010 01:48 AM, Ivan wrote: Even, That was a little thing that I start years ago. Here is the usage: {{{ # = # Usage Message # =

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-02 Thread Ivan
Even, That was a little thing that I start years ago. Here is the usage: {{{ # = # Usage Message # = def Usage(): print 'Usage: mathbox.py

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-02 Thread Christopher Barker
Even Rouault wrote: For the record, I had started some time ago to work on something pretty close to Frank's ideas. It was based on a "generic" expression evaluator that could accept C-like expressions ( arithmetic operators, boolean operators, numeric constants, a few predefined maths function

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-02 Thread Even Rouault
For the record, I had started some time ago to work on something pretty close to Frank's ideas. It was based on a "generic" expression evaluator that could accept C-like expressions ( arithmetic operators, boolean operators, numeric constants, a few predefined maths functions, user variables, us

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-02 Thread Frank Warmerdam
Antonio Valentino wrote: Anyway, IMHO the point here is not to decide if we have to *modify* the diff function so that it returns abs(b1-b2). Greg asked to add a new one ( abs(b1-b2) ) to the *base set* of pixel functions. Stated that there is no technical difficulty to do this I'm wondering what

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-02 Thread Antonio Valentino
Hi Andrew, Il giorno Tue, 02 Feb 2010 10:43:27 - "Andrew Brooks" ha scritto: > Hi Antonio > > Your pixel function patch sounds interesting. I've not tried it yet, thanks > but how easy is it to create a stack of functions? For example if > absdiff(b1.tif,b2.tif) is not available how wou

Re: [gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-02 Thread Antonio Valentino
Hi Jukka, Il giorno Tue, 2 Feb 2010 07:20:52 + (UTC) Jukka Rahkonen ha scritto: > Greg Coats mac.com> writes: > > > > > I would prefer to obtain in one step the absolute value of the > > difference > between two pixels, in part because > > I do not see the meaning of a negative pixel valu

[gdal-dev] Re: Proposal: gdal_muladd.py

2010-02-01 Thread Jukka Rahkonen
Greg Coats mac.com> writes: > > I would prefer to obtain in one step the absolute value of the difference between two pixels, in part because > I do not see the meaning of a negative pixel value. In my example, I do not see meaning to a signed byte value > for a pixel channel being red=-51. Greg