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 
Return to the default flat view Create a new topic Submit Reply
Re: Probably a simple question, but I'm only a beginner with this IDL stuff :) [message #23606 is a reply to message #23430] Mon, 29 January 2001 09:10 Go to previous message
Jason P. Meyers is currently offline  Jason P. Meyers
Messages: 24
Registered: September 2000
Junior Member
David Fanning wrote:
>
>
> Whether the (0,0) pixel is in the lower-left corner
> of the window, or the upper-left corner is a matter
> of preference. The convention you choose to use is
> set by the !Order system variable, which by default
> is set to 0. To flip your image right side up, either
> set !Order=1 or set the ORDER keyword to 1 on the
> image display command:
>
> IDL> TV, image, Order=1
>
> Cheers,
>
> David

Here is yet another solution to your problem which may (or may not) be
better suited for your specific situation. Instead of flipping the
image when issuing the TV command, you can flip the 3-D (or any-D) array
using IDL's
REVERSE function.

For example, assuming Image is a 3-D array interleaved by bit (i.e.
Image[RGB,Rows,Columns]) then the following statement will flip the
rows:

Image = Reverse(Image,2)

The second argument (i.e. 2 in the above example) tells Reverse which
index to reverse. The others remain unchanged.

Enjoy,
Jason Meyers
PhD Student, Center for Imaging Science
Rochester Institute of Technology
jpm7934@rit.edu
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: CALL_EXTERNAL, VC++, ERROR_PROC_NOT_FOUND
Next Topic: Creating a sphere (Object Graphics)

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

Current Time: Sat Oct 11 13:23:26 PDT 2025

Total time taken to generate the page: 2.00155 seconds