Re: Nonlinear Diffusion Image Filtering Package [message #75088] |
Tue, 15 February 2011 10:59 |
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  |
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  |
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 #75096 is a reply to message #75095] |
Tue, 15 February 2011 09:05  |
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  |
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  |
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  |
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  |
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
|
|
|