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 #38982] Fri, 16 April 2004 04:58 Go to previous message
Thomas Nehls is currently offline  Thomas Nehls
Messages: 24
Registered: March 2004
Junior Member
Rick Towler wrote:
> "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
>
>
Hi,

you are completely right, sorry. some hours before I used the
ORIENTATION keyword in connection with WRITE_TIFF, so my mistake was to
think(to wish) ORIENTATION would have the same function in READ_TIFF.

Is there any possibility to tell IDL that the XY coordinates I used to
define the SUBRECT Portion are coordinates starting from the left hand
top? (Thats what I wanted to tell IDL by using ORIENTATION = 1)

I dont want to recalculate the coordinates...
Thanks
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 13:44:49 PDT 2025

Total time taken to generate the page: 0.00504 seconds