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 #28525 is a reply to message #28474] Wed, 19 December 2001 14:33 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
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

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 03:56:59 PDT 2025

Total time taken to generate the page: 0.76751 seconds