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

Home » Public Forums » archive » Gradient of a level set function
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: Gradient of a level set function [message #91353 is a reply to message #91352] Thu, 02 July 2015 07:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
SP writes:

>
> i have a fits image with me ;double= array[4096,4096]
>
> i have read the image using
> img=readfits('filename.fts')
>
> s = mean(img)
>
> I am using the value of 's' as threshold.
>
> Now i want to define the level set function;
>
> 'u' is the level set function.
>
> u = img - s
>
> Now i want to find the gradient of the level set function 'u'.
>
> So;
> uxy= gradient(u)
>
> But im getting
>
> % Variable is undefined: Gradient.
>
> Can anyone help me out in this..

The function GRADIENT (which must be something you have written or found
somewhere, because it doesn't come in the "normal" IDL distribution)
doesn't appear to be on your IDL path where it can be found. Add
whatever directory the gradient.pro file is in to your IDL path. Then,
restart IDL and you will be good to go.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: undefined procedure/function error
Next Topic: USERSYM Procedure Vertices

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

Current Time: Wed Oct 08 14:01:13 PDT 2025

Total time taken to generate the page: 0.00430 seconds