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 #84610 is a reply to message #73895] Sun, 05 December 2010 07:44 Go to previous messageGo to previous message
burton449 is currently offline  burton449
Messages: 15
Registered: December 2010
Junior Member
On Dec 4, 8:04 pm, David Fanning <n...@dfanning.com> wrote:
> 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.")

Thank you David for your help, because I am used with Python, I have
the bad habit to try the same calling sequences in IDL. I did what you
told me, and script start running but there is a syntax error now.
This is what I did in IDL (I put the image and the .pro in the
IDL71\bin\bin.x86\ folder):

image = Read_Tiff('myimage.tif')
result = sigma_filter(image, 5, 2, /ALL, /MON )

This is the error message in brief:
%syntax error. ... at line 56
%Attempt to call undefined procedure/function: 'SIGMA_FILTER'

mean=( filter_image( image,SMO=box_width,ALL=all )*bw2 -
image )/
(bw2-1)

%syntax error. ... at line 63

imvar = fact*( filter_image( imdev,SMO=box_width,ALL=all )*bw2 -
imdev )


Do you think the error is in the script itself or in my calling
sequence?
Thanks again!
Max
[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 05:53:19 PDT 2025

Total time taken to generate the page: 0.95924 seconds