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

Home » Public Forums » archive » Re: Probably a simple question, but I'm only a beginner with this IDL stuff :)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Probably a simple question, but I'm only a beginner with this IDL stuff :) [message #23428] Sat, 27 January 2001 12:58
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
You can do image = reverse(image,2) where the 2 in this case represents which
dimension you want reversed (unlike a lot of other things in IDL, the first
dimension is 1, not 0). So if your image is of dimension (3,h,w) you'd want to
use 2 as above, reverse(image,3) would flip it left-right, etc.

Chris Bull wrote:

> I have read in an array from a file its an xyz image (three chanels pixel
> interleved)
> however it is defined from the top row of the image rather than the bottom
> as IDL
> defines it... If it were a two dimensional array it would be easy to
> rotate/flip it
> however I cant work out how to flip it and all my pictures are coming out
> upside
> down :(
>
> Can someone please point me in the right direction on flipping it vertically
> :)
>
> TIA
>
> Chris Bull
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Probably a simple question, but I'm only a beginner with this IDL stuff :)
Next Topic: .skip

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

Current Time: Wed Oct 08 17:45:09 PDT 2025

Total time taken to generate the page: 0.00403 seconds