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

Home » Public Forums » archive » Re: Nonlinear Diffusion Image Filtering Package
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Nonlinear Diffusion Image Filtering Package [message #75088] Tue, 15 February 2011 10:59
Ding is currently offline  Ding
Messages: 20
Registered: March 2008
Junior Member
On Feb 15, 6:02 pm, Gianguido Cianci <gianguido.cia...@gmail.com>
wrote:
> Hi Ding,
>
> I am having a problems with your code. It seems gsderiv checks of
> sigma to be "in range", but incorrectly... Also, roll.pro uses sng
> instead of signof.
>
> Thanks!
> Gianguido
>
> IDL> imgf=nonlineardif(img,sigma, 0,
> dt=0.1,ndt=20,mode='eed',scheme=scheme)
> % Compiled module: NONLINEARDIF.
> % Compiled module: EXIST.
> % Variable is undefined: IN_RANGE.
> % Execution halted at: GSDERIV            65 /Users/cgguido/idl/
> cgguido/downloaded/nonlineardif/nonlineardif.pro
> %                      NONLINEARDIF      505 /Users/cgguido/idl/
> cgguido/downloaded/nonlineardif/nonlineardif.pro
> %                      $MAIN$

Gianguido,

Thanks for reminding, you are correct, sgn.pro is a solarsoft
alternative of signof.pro, in_range.pro is also from solar soft. I
will add the scripts from solarsoft, as notes.

Cheers

Ding
Re: Nonlinear Diffusion Image Filtering Package [message #75092 is a reply to message #75088] Tue, 15 February 2011 10:35 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 2/15/11 10:05 AM, Ding wrote:
> I'd rather use n_elements() ne 0 instead of keyword_set().

KEYWORD_SET and N_ELEMENTS() ne 0 are telling you two *different* things
about your variable. Which one you use depends on what you need to know
about it.

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
Re: Nonlinear Diffusion Image Filtering Package [message #75094 is a reply to message #75092] Tue, 15 February 2011 10:02 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Hi Ding,

I am having a problems with your code. It seems gsderiv checks of
sigma to be "in range", but incorrectly... Also, roll.pro uses sng
instead of signof.

Thanks!
Gianguido

IDL> imgf=nonlineardif(img,sigma, 0,
dt=0.1,ndt=20,mode='eed',scheme=scheme)
% Compiled module: NONLINEARDIF.
% Compiled module: EXIST.
% Variable is undefined: IN_RANGE.
% Execution halted at: GSDERIV 65 /Users/cgguido/idl/
cgguido/downloaded/nonlineardif/nonlineardif.pro
% NONLINEARDIF 505 /Users/cgguido/idl/
cgguido/downloaded/nonlineardif/nonlineardif.pro
% $MAIN$
Re: Nonlinear Diffusion Image Filtering Package [message #75095 is a reply to message #75094] Tue, 15 February 2011 09:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ding writes:

> I'd rather use n_elements() ne 0 instead of keyword_set().

I would suggest that is what you *should* be using instead
of Keyword_Set, so I'm glad to hear it. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Nonlinear Diffusion Image Filtering Package [message #75096 is a reply to message #75095] Tue, 15 February 2011 09:05 Go to previous message
Ding is currently offline  Ding
Messages: 20
Registered: March 2008
Junior Member
On Feb 15, 4:11 pm, David Fanning <n...@dfanning.com> wrote:
> Ding writes:
>> It is true, I found it a good replacement of keyword_set() which some
>> times failed
>
> I doubt it failed. It's often used for the wrong purpose
> by people who judge its function by reading its name
> instead of its documentation. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I'd rather use n_elements() ne 0 instead of keyword_set().
Re: Nonlinear Diffusion Image Filtering Package [message #75097 is a reply to message #75096] Tue, 15 February 2011 08:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ding writes:

> It is true, I found it a good replacement of keyword_set() which some
> times failed

I doubt it failed. It's often used for the wrong purpose
by people who judge its function by reading its name
instead of its documentation. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Nonlinear Diffusion Image Filtering Package [message #75098 is a reply to message #75097] Tue, 15 February 2011 08:07 Go to previous message
Ding is currently offline  Ding
Messages: 20
Registered: March 2008
Junior Member
On Feb 15, 3:24 pm, Paolo <pgri...@gmail.com> wrote:
> On Feb 15, 8:06 am, chris <rog...@googlemail.com> wrote:
>
>
>
>> On 15 Feb., 12:28, Ding <gardener_2...@hotmail.com> wrote:
>
>>> Dear All,
>
>>> I developed a code based on the nonlinear diffusion Image filtering
>>> (see Joachim  Weickert 1996).
>>> available athttp://www2.warwick.ac.uk/fac/sci/physics/research/cfsa/pe ople/yuan/s...
>
>>> It performs edge-enhancing, coherence-enhancing image filtering, which
>>> enhance the features directionally as designed by the diffusion
>>> tensor, while smooth the rest of the image.
>
>>> You are welcome to download and test the codes, I appreciate that you
>>> send me comments and bugs.
>
>>> Cheers
>
>>> Ding Yuan
>>> CFSA, Physics
>>> Warwick University
>
>> Hi,
>> I'd like to test it, but maybe you forgot to include all routines in
>> you zip-file such as exist.pro. Yo can easily check this by using
>> RESOLVE_ALL.
>
>> Cheers
>
>> CR
>
> Looks like it's from solarsoft
>
> function exist,var
>
> return,n_elements(var) ne 0
>
> end
>
> Ciao,
> Paolo

It is true, I found it a good replacement of keyword_set() which some
times failed. I work on solar physics and used to include the
procedures in solarsoft
Re: Nonlinear Diffusion Image Filtering Package [message #75099 is a reply to message #75098] Tue, 15 February 2011 07:24 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Feb 15, 8:06 am, chris <rog...@googlemail.com> wrote:
> On 15 Feb., 12:28, Ding <gardener_2...@hotmail.com> wrote:
>
>
>
>
>
>
>
>
>
>> Dear All,
>
>> I developed a code based on the nonlinear diffusion Image filtering
>> (see Joachim  Weickert 1996).
>> available athttp://www2.warwick.ac.uk/fac/sci/physics/research/cfsa/pe ople/yuan/s...
>
>> It performs edge-enhancing, coherence-enhancing image filtering, which
>> enhance the features directionally as designed by the diffusion
>> tensor, while smooth the rest of the image.
>
>> You are welcome to download and test the codes, I appreciate that you
>> send me comments and bugs.
>
>> Cheers
>
>> Ding Yuan
>> CFSA, Physics
>> Warwick University
>
> Hi,
> I'd like to test it, but maybe you forgot to include all routines in
> you zip-file such as exist.pro. Yo can easily check this by using
> RESOLVE_ALL.
>
> Cheers
>
> CR

Looks like it's from solarsoft

function exist,var

return,n_elements(var) ne 0

end


Ciao,
Paolo
Re: Nonlinear Diffusion Image Filtering Package [message #75103 is a reply to message #75099] Tue, 15 February 2011 05:06 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 15 Feb., 12:28, Ding <gardener_2...@hotmail.com> wrote:
> Dear All,
>
> I developed a code based on the nonlinear diffusion Image filtering
> (see Joachim  Weickert 1996).
> available athttp://www2.warwick.ac.uk/fac/sci/physics/research/cfsa/pe ople/yuan/s...
>
> It performs edge-enhancing, coherence-enhancing image filtering, which
> enhance the features directionally as designed by the diffusion
> tensor, while smooth the rest of the image.
>
> You are welcome to download and test the codes, I appreciate that you
> send me comments and bugs.
>
> Cheers
>
> Ding Yuan
> CFSA, Physics
> Warwick University

Hi,
I'd like to test it, but maybe you forgot to include all routines in
you zip-file such as exist.pro. Yo can easily check this by using
RESOLVE_ALL.

Cheers

CR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Nonlinear Diffusion Image Filtering Package
Next Topic: Re: Optimization Question: Sum at each element of array

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

Current Time: Wed Oct 08 11:30:00 PDT 2025

Total time taken to generate the page: 0.00733 seconds