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

Home » Public Forums » archive » Locating SMOOTH in IDL library
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
Locating SMOOTH in IDL library [message #89765] Wed, 03 December 2014 00:45 Go to next message
vaibhavpant55 is currently offline  vaibhavpant55
Messages: 10
Registered: December 2014
Junior Member
Hi all,
I am trying to smooth an image using SMOOTH function in IDL. However i want to see how the SMOOTH routine is written because when I tried to write the routine myself, it takes a bit longer time than SMOOTH function. I tried to search for it in IDL lib but i couldn't locate it. Same is true for convolution (CONVOL) and FFT. Can anyone tell where these functions are located in IDL libraries ?

Vaibhav Pant
Re: Locating SMOOTH in IDL library [message #89766 is a reply to message #89765] Wed, 03 December 2014 01:38 Go to previous messageGo to next message
Sergey Anfinogentov is currently offline  Sergey Anfinogentov
Messages: 11
Registered: September 2012
Junior Member
They don't use direct convolution
They do something like this code

temp = total(x, /CUMULATIVE)
result = shift(temp,n)- temp

The example is 1d, but it is possible to do the same thing in 2d and 3d
Re: Locating SMOOTH in IDL library [message #89768 is a reply to message #89766] Wed, 03 December 2014 02:35 Go to previous messageGo to next message
vaibhavpant55 is currently offline  vaibhavpant55
Messages: 10
Registered: December 2014
Junior Member
On Wednesday, December 3, 2014 3:08:02 PM UTC+5:30, Sergey Anfinogentov wrote:
> They don't use direct convolution
> They do something like this code
>
> temp = total(x, /CUMULATIVE)
> result = shift(temp,n)- temp
>
> The example is 1d, but it is possible to do the same thing in 2d and 3d

Thanks for the reply. It is a nice trick.
Still would like to know where these routines are present in IDL library. If anyone has any idea please do let me know?
Re: Locating SMOOTH in IDL library [message #89769 is a reply to message #89768] Wed, 03 December 2014 02:44 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 03.12.2014 11:35, Vaibhav Pant wrote:
> Still would like to know where these routines are present in IDL library.

They are likely written in C, and they are probably shipped compiled and
protected, to avoid that people look into it...

Cheers,

Fabien
Re: Locating SMOOTH in IDL library [message #89774 is a reply to message #89765] Wed, 03 December 2014 06:43 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Wednesday, December 3, 2014 2:45:48 AM UTC-6, Vaibhav Pant wrote:
> Hi all,
> I am trying to smooth an image using SMOOTH function in IDL. However i want to see how the SMOOTH routine is written because when I tried to write the routine myself, it takes a bit longer time than SMOOTH function. I tried to search for it in IDL lib but i couldn't locate it. Same is true for convolution (CONVOL) and FFT. Can anyone tell where these functions are located in IDL libraries ?
>
> Vaibhav Pant

Seems to me this provides what Smooth does:

http://exelisvis.com/docs/SMOOTH.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Drawing lines in ENVI LiDAR with IDL
Next Topic: Z-buffer and plot/oplot issues

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

Current Time: Wed Oct 08 11:34:05 PDT 2025

Total time taken to generate the page: 0.00467 seconds