Re: Gradient of an Image in IDL [message #9118] |
Tue, 03 June 1997 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Brad Cadle wrote:
>
> HI all,
> I was wondering if someone knows of an optimized IDL routine to
> compute the gradient of an image, I ported one over from C where the
> gradient is generated in fourier space, but I was interested to find
> if one was optimized for IDL.
One alternative is to use CALL_EXTERNAL() to interface to your (already
optimized) C routine, which would require slight modifications to the
routine. I can mail you examples of using this method if you're
interested.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
"I have this theory that if we're told we're bad,
then that's the only idea we'll ever have.
But maybe if we are surrounded in beauty,
someday we will become what we see." - Jewel Kilcher
|
|
|