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 #38992 is a reply to message #38982] Thu, 15 April 2004 09:50 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Thomas Nehls" wrote in message...

>> 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?

Even if you don't understand the error, check the clues. READ_TIFF is
complaining about something to do with an integer value "1". Looking at
your READ_TIFF call I see two places you are trying to pass "1". A check of
the docs would reveal that ORIENTATION is supposed to be set "to a named
variable which will contain the orientation value from the TIFF file." So
READ_TIFF wants to *return* a value via the ORIENTATION keyword but it can't
because "1" is not a valid variable. Changing "ORIENTATION=1" to
"ORIENTATION=o" should fix this problem.

-Rick
[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 15:47:52 PDT 2025

Total time taken to generate the page: 0.15321 seconds