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

Home » Public Forums » archive » nonexclusive button goup woes...
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
nonexclusive button goup woes... [message #21809] Wed, 20 September 2000 00:00 Go to next message
David Bowman is currently offline  David Bowman
Messages: 10
Registered: July 2000
Junior Member
Hi all. I have a (hopefully) simple question about the CW_FORM routine:

I'm creating a set of nonexclusive buttons, and I want to set the
default values all at once using the set_value keyword... The problem
is, how do I set multiple values? For example:

IDL>d=['1,base,,column',
'0, button, ok, quit',
'2, button, option1|option2|option3|option4, set_value=1 0 0 1']
IDL>a=cw_form(desc,/column)

How do I make, for example, option1 and option4 set by default? I've
tried set_value=1001, set_value=[1,0,0,1], set_value=1|0|0|1 and
various other combinations, but nothing seems to work... Any ideas?

Thanks in advance.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=
David Bowman "Smash forehead on keyboard to continue."
Laboratoire Tectonique
Institut de Physique du Globe - Paris
4 Place Jussieu
75252 Paris Cedex 05
France
Re: None [message #44392 is a reply to message #21809] Wed, 08 June 2005 08:46 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Rainnie, JA (John) wrote:
> Hi Benjamin
>
> What sort of ROI did you have in mind - a rectangular ROI defined by 2
> points or a freehand type?

Freehand, but it would be nice to have a selection of tools for
rectangle, ellipse, polygon and freehand.

Benjamin


>
> John
>
> -----Original Message-----
> From: Benjamin Hornberger [mailto:benjamin.hornberger@stonybrook.edu]
> Posted At: 03 June 2005 18:45
> Posted To: idl-pvwave
> Conversation: defining regions of interest in widget programs
> Subject: defining regions of interest in widget programs
>
>
> Hi all,
>
> It's the first time I'm trying to define and use ROIs, so I have the
> basic question of what's the best way to do it. Basically, I want to
> allow the user to define a ROI in a widget program, be able to display
> it with some kind of color shading (possibly the original image shining
> through) and manipulate the image pixels within the ROI. I checked the
> IDL help and the newsgroup archive and drew the following conclusions
> (without doing much testing yet):
>
> 1. DEFROI is not for widget programs.
>
> 2. CW_DEFROI is meant to do what I want, but is kind of clunky.
> According to the source code, it's been written 1993 and never updated.
>
> 3. XROI would actually work well, but (1) opens the image in its own
> window, while I would prefer to define the ROI in my existing draw
> widget, and (2) offers tons of options which will confuse the user
> (statistics, histogram, multiple ROIs, even loading a new image) and
> which I would preferably not offer to him.
>
> 4. David recommends to write your own code to define ROIs. As I
> understand it, I would include some code to draw a freehand or polygon
> path and then use POLYFILLV to get all indices of the ROI.
>
> I'd appreciate any comments and recommendations. Does anyone has
> home-made code to do the job?
>
> Thanks,
> Benjamin
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: None
Next Topic: Satellite data programming help

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

Current Time: Fri Oct 10 12:48:57 PDT 2025

Total time taken to generate the page: 0.48101 seconds