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 #64061 is a reply to message #63980] Fri, 28 November 2008 08:14 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
If the original poster has a gradient image A and wants to compute
the image B whose gradient is A, then it seems odd to me that a
sparse approach would work.

Ciao,
Paolo

Jeremy Bailin wrote:
> On Nov 28, 4:31�am, erano <eran.o...@gmail.com> 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.
>> 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?
>
> Oddly enough, that's the second time sparse arrays have come up in one
> week!
>
> You want LINBCG, which takes as input a sparse matrix created using
> SPRSIN. The help pages on them are pretty decent - give them a read.
>
> -Jeremy.
[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: Thu Oct 09 23:34:12 PDT 2025

Total time taken to generate the page: 0.23925 seconds