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
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
|
|
|