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

Home » Public Forums » archive » defroi and X11
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
defroi and X11 [message #58837] Sat, 23 February 2008 19:20
Paul Levine is currently offline  Paul Levine
Messages: 29
Registered: February 2008
Junior Member
Hi all, this is my first experience doing anything 'interactive' in
IDL, but I am finding myself needing to hand-draw some ROIs. In the
IDL documentation for the DEFROI function, a simple example is given as
quoted below:

; Create an image:
TVSCL, DIST(200,200)

; Call DEFROI. The cursor becomes active in the graphics window.
; Define a region and click the right mouse button:
X = DEFROI(200, 200)

; Print subscripts of points included in the defined region:
PRINT, X

Okay, if I use that example in Windows, everything works as it should.
But when I try the same commands on my Macintosh or on a Red Hat Linux
machine, after calling the DEFROI command, none of the mouse
interactions I do on the X11 window displaying the image from TVSCL
seem to do anything, and IDL is completely non-responsive. In IDL 6.4
the only solution is to kill IDL, though in IDL 7 the Eclipse menu
items remain accessible even while IDL is hanging, so I can terminate
the process.

The DEFROI documentation states that

"DEFROI only works for interactive, pixel oriented devices with a
cursor and an exclusive or writing mode."

Given what DEFROI is supposed to do, the first part seems pretty
obvious, in that it is an interactive command that takes input from the
mouse cursor. But I am not understanding what "an exclusive or writing
mode" is, which I am hoping may be what my problem is.

I searched for some information about X11 and "exclusive mode" or
"writing mode" but did not find anything helpful, so I am hoping
somebody can steer me in the right direction to get educated on this.

Or, if it is not an X11 issue at all, but something else to do with
windows vs. unix, I am open to any suggestions. Also, for whatever
it's worth, I am pretty sure there is no hardware issue, because both
my Mac and the Linux machine have software to run Windows in a virtual
machine, and in both cases while doing this the DEFROI example works as
expected.

Thanks for any suggestions,
Paul
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: linear-space image converted to log-space
Next Topic: Re: linear-space image converted to log-space

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

Current Time: Fri Oct 10 06:47:46 PDT 2025

Total time taken to generate the page: 1.51702 seconds