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

Home » Public Forums » archive » Inverting the image
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: Inverting the image [message #28617 is a reply to message #28522] Wed, 19 December 2001 15:20 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
David Fanning wrote:
>
> JD Smith (jdsmith@astro.cornell.edu) writes:
>
>> Akhila wrote:
>>>
>>> HI,
>>> I have an image of size(512 x 512 x 195). Its a CT image of chest and
>>> the image appears with the backbone in the upward direction and the
>>> sternum in the downward direction. I want to get it inverted.
>>> For example:
>>>
>>> filename = Filepath(SubDirectory = ['examples', 'data'],
>>> 'worldelv.dat)
>>> image= BytArr(360, 360)
>>> openR, lun, filename
>>> ReadU, lun, image
>>> Free_lun, lun
>>>
>>> Tvscl, image
>>
>> How about "1/image". Pretty inverted there.
>>
>> But seriously, you don't really say what you mean by "inverted", which
>> is a concept which applies quantitatively only to colormaps, where it
>> means "reverse the order of the colormap entries". Maybe you want
>> something like:
>>
>> image=max(image)-image
>
> I think more likely:
>
> TVSCL, image, Order=1
>
> Or,
>
> TVSCL, Reverse(image, 2)

Ahah... that's what I get for not reading ahead. Apologies.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: global variables in IDL
Next Topic: Re: image display by IDL

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

Current Time: Fri Oct 10 01:11:34 PDT 2025

Total time taken to generate the page: 1.52188 seconds