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

Home » Public Forums » archive » Re: sigma_filter calling sequence
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: sigma_filter calling sequence [message #73895 is a reply to message #73892] Sat, 04 December 2010 17:04 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
burton449 writes:

> Ok!
> the script and the image are in the directory d:\
> the image is a .tif
>
> In IDL command line I typed the calling sequence with those
> parameters:
>
> Result = sigma_filter( image.tif, 5, 2 )
>
> I want the box_widht to be of 5 and the N_sigma to be 2.
>
> The error i got is:
>
> % Syntax error.
> IDL> Result = sigma_filter( image.tif, 5, 2 )
> % Expression must be a structure in this context: IMAGE.
> % Execution halted at: $MAIN$
>
> If try to show the path of the image like d:\\image.tif the error
> message is:
> % Illegal character in program text.

The "image" in the command has to be the image itself,
not the name of the file containing an image. So, you have
to read the image data out of the image file.

IDL> image = Read_Tiff('myimagefile.tif')
IDL> Help, image

Try that and see what happens. :-)

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: comp.lang isdl pvwaave
Next Topic: FFT+inverse FFT

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

Current Time: Fri Oct 10 00:40:12 PDT 2025

Total time taken to generate the page: 0.08489 seconds