comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » inverse gradient
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: inverse gradient [message #64063 is a reply to message #63980] Fri, 28 November 2008 08:10 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
erano wrote:
> On Nov 27, 5:24�pm, Jeremy Bailin <astroco...@gmail.com> wrote:
>> On Nov 27, 3:27�am, erano <eran.o...@gmail.com> wrote:
>>
>>>> "inverse" meaning what for a vector-field?
>>
>>>> Paolo
>>
>>> "inverse" is the opposite operation for gradient.
>>> The inputs are 2D gradient images (dX and dY), where high values are
>>> large changes in the "inverse gradient" image, and zeros are stable
>>> (no changes) in the "inverse gradient".
>>
>>> Eran
>>
>> I would never use this in production code, but here's a hack that will
>> give you something to look at:
>>
>> scalarfield = total(dX, /cumulative, 1) + total(dY, /cumulative, 2)
>>
>> The real solution is to replace those totals with actual integrals.
>>
>> -Jeremy.
>
>
> Thanks,
>
> It's the simplest way. it's basicly works but with errors.
> I found few articlies about "inverse gradient" on the web, and the
> problem is very complex and the simple MATLAB function (from matlab
> exchange) is expensive (memory).
> The main problem is to solve A*F=V where A is M*N matrix, V is vector
> and we look for F.

While that is true in general, the gradient operatiom (which is a
linear
and therefore can be represented as a matrix operation) is a matrix
that
consist only of diagonal and one-row above diagonal elements.

Therefore, there is no need to solve the full matrix equation, but one
can
use simpler methods (i.e. in IDL trisol).

Paolo



> I used LA_LEAST_SQUARES (with all possible methods) for solve this
> but it is slow and have memory problem. please note that most of A
> matrix are zeros...
>
> Any ideas?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem reading data from stdin using EOF(0) in version 6.0 and 7.0
Next Topic: installing and licensing IDL with FLEXnet

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:55:47 PDT 2025

Total time taken to generate the page: 0.00470 seconds