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

Home » Public Forums » archive » Re: reading pixels from images from automated XYpositions
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: reading pixels from images from automated XYpositions [message #38994 is a reply to message #38992] Thu, 15 April 2004 09:23 Go to previous messageGo to previous message
Thomas Nehls is currently offline  Thomas Nehls
Messages: 24
Registered: March 2004
Junior Member
Hi Yunxiang,
thank you for showing me where my problem was! now I got a new one ;-)

I have an 3 x 6 array.
I looked through the IDL-help and then I found all the keywords for the
read_tiff function and now I think that is one key to our problem:
what do you think about that:

> PRO gs
>
> image = DIALOG_PICKFILE(,/read) ;gets the image filename
> position = DIALOG_PICKFILE(,/read) ;gets the according position filename
>
> pos = READ_SYLK(position, /ARRAY, /COLMAJOR, NROWS=n)
>
> output = DIALOG_PICKFILE(,/WRITE)
> OPENW,1,output,/APPEND
> PRINTF,1,image
> CLOSE,1
>
> FOR i=0,n-1 DO BEGIN
>
> img = READ_TIFF(image, R, G, B , ORIENTATION=1, SUB_RECT=[pos[1,i]-3,pos[2,i], 7, 7])
>
> OPENW,1,'greyscale_data.dat',/APPEND
> PRINTF,1, i+1, mean(R), stddev(R), median(R)
> CLOSE,1
> ENDFOR
>
> END

I thought, this would be a good idea, but unfortunately:
> % READ_TIFF: Expression must be named variable in this context:
> <INT ( 1)>.

what does it mean? which expression?

Can anybody help us/me?
Thanks in advance
Tom
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Yes, probably, you're right
Next Topic: Re: set default set of sub-bands in envi_select

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

Current Time: Wed Oct 08 18:28:59 PDT 2025

Total time taken to generate the page: 0.00795 seconds