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 #28522 is a reply to message #28474] Wed, 19 December 2001 14:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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 09:59:12 PDT 2025

Total time taken to generate the page: 0.79858 seconds